/* === MESSAGE CONTEXT MENU === */
.message-context-menu {
    position: fixed;
    background: #2a2a2a;
    border: 1px solid rgba(249, 134, 82, 0.3);
    border-radius: 12px;
    padding: 0;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transform: scale(0.85) translateY(12px);
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.message-context-menu.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

/* Quick Reactions Bar at top of context menu */
.context-quick-reactions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-reaction-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 24px;
    border: none;
    padding: 0;
}

.quick-reaction-btn:hover {
    background: rgba(249, 134, 82, 0.15);
    transform: scale(1.2);
}

.quick-reaction-more {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
    border: none;
}

.quick-reaction-more:hover {
    background: rgba(249, 134, 82, 0.15);
    color: var(--accent-color);
}

.context-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0;
}

.context-menu-items {
    padding: 8px 0;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.context-menu-item:hover {
    background: rgba(249, 134, 82, 0.1);
    color: var(--text-primary);
}

.context-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.context-menu-item.danger {
    color: #ef4444;
}

.context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ff5555;
}

/* === MESSAGE REACTIONS (Telegram Style) === */
.message {
    position: relative;
    margin-bottom: 12px;
    /* Збільшено відступ між повідомленнями */
}

/* Twemoji Styles - make emojis beautiful */
img.emoji {
    height: 1.2em;
    width: 1.2em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}

.message-bubble {
    position: relative;
    display: inline-block;
    /* Видалено padding-bottom - реакції будуть поза bubble */
}

/* Reactions container - OUTSIDE BELOW message bubble, як в Telegram */
.message-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    /* Відступ зверху від повідомлення */
    pointer-events: all;
    max-width: 100%;
    justify-content: flex-start;
    min-height: 0;
    /* Дозволяє контейнеру бути порожнім */
    transition: margin 0.2s ease;
}

/* Individual reaction pill */
.reaction-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /* Збільшено трохи gap */
    padding: 3px 8px;
    /* Трохи більші для кращого вигляду */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    /* Більш округлі */
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Плавна анімація */
    backdrop-filter: blur(8px);
    height: 26px;
}

.reaction-item:hover {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(249, 134, 82, 0.5);
    transform: scale(1.1);
    /* Збільшення при hover */
}

.reaction-item.reacted {
    background: rgba(249, 134, 82, 0.25);
    border-color: var(--accent-color);
}

.reaction-emoji {
    font-size: 16px;
    /* Трохи більший emoji */
    line-height: 1;
    display: flex;
    align-items: center;
}

.reaction-item .emoji {
    width: 16px;
    height: 16px;
}

.reaction-count {
    font-size: 11px;
    font-weight: 700;
    color: #eee;
    min-width: 10px;
    text-align: center;
    line-height: 1;
}

.reaction-item.reacted .reaction-count {
    color: var(--accent-color);
}

/* === EMOJI PICKER (Extended) === */
.emoji-picker {
    position: fixed;
    background: #2a2a2a;
    border: 1px solid rgba(249, 134, 82, 0.3);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    max-width: 320px;

    /* Sleek spring popup transition */
    display: block;
    opacity: 0;
    transform: scale(0.85) translateY(12px);
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
}

.emoji-picker.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.emoji-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.emoji-picker-title {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* 7 columns to perfectly align 56 emojis (7x8 grid)! */
    gap: 6px;
    max-height: 250px;
    /* Slightly taller for perfect grid layout */
    overflow-y: auto;
    padding: 2px;
}

.emoji-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.emoji-item:hover {
    background: rgba(249, 134, 82, 0.2);
    transform: scale(1.35) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

/* Scrollbar styling */
.emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(249, 134, 82, 0.5);
    border-radius: 3px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Message hover effects */
.message:hover {
    background: transparent;
}

/* Premium targeted message bubble hover lift & glow */
.message-bubble {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.message-bubble:hover {
    filter: brightness(1.08) contrast(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* Premium selection state styling */
.message.selected {
    background: rgba(249, 134, 82, 0.08) !important;
    transition: background-color 0.25s ease;
}

.message.selected .message-bubble {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 12px rgba(249, 134, 82, 0.2);
}

/* Style for context menu when clicked outside the bubble (empty chat space) */
.message-context-menu.outside-bubble .context-quick-reactions,
.message-context-menu.outside-bubble .context-menu-divider,
.message-context-menu.outside-bubble .context-menu-item:not([data-action="select"]) {
    display: none !important;
}

.message-context-menu.outside-bubble {
    min-width: 145px;
    border: 1px solid rgba(249, 134, 82, 0.2);
}

/* Animation for new reactions - плавна поява */
@keyframes reactionPop {
    0% {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.15) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.reaction-item.new {
    animation: reactionPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === MESSAGE DELETION ANIMATION === */
@keyframes messageDelete {
    0% {
        opacity: 1;
        transform: scale(1);
        max-height: 500px;
        margin-bottom: 12px;
    }

    50% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border: none;
    }
}

.message.deleting {
    animation: messageDelete 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

/* === PINNED CHAT INDICATOR === */
.chat-item-pinned {
    position: absolute;
    top: 8px;
    left: 8px;
    color: var(--accent-color);
    font-size: 10px;
    z-index: 2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    animation: pinPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pinPop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.chat-item.pinned {
    background: rgba(249, 134, 82, 0.03);
    border-left: 3px solid var(--accent-color);
}

/* === PREMIUM SWIFT iOS SWITCHING TRANSITIONS === */
@keyframes iosSlideUpFade {
    0% {
        transform: translateY(24px) scale(0.98);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.chat-messages.switching {
    animation: iosSlideUpFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* === TELEGRAM SPRING/BOUNCE REACTION ANIMATIONS === */
@keyframes telegramPopBounce {
    0% {
        transform: scale(0.6);
    }

    30% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.reaction-item.pop-bounce {
    animation: telegramPopBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* === DYNAMIC FLOATING REACTION PARTICLES === */
.reaction-particle {
    position: absolute;
    pointer-events: none;
    z-index: 100000;
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    will-change: transform, opacity;
}

/* === ONLINE PRESENCE INDICATORS === */
.chat-item-avatar-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.chat-item-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    background: #10b981;
    /* Telegram green */
    border: 2px solid #222222;
    /* Matches the dark background of chat items */
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    animation: onlineDotPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes onlineDotPop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* === UNIFIED ACTIONS WRAPPER & MORPH ANIMATIONS === */
.chat-input-actions {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .chat-input-actions {
        width: 40px;
        height: 40px;
    }
}

.chat-input-actions button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border: none;
    cursor: pointer;
    margin: 0 !important;
}

/* Override standard button hidden/block states */
.chat-input-actions .send-message-btn,
.chat-input-actions .mobile-voice-btn {
    display: flex !important;
}

/* Morph classes with custom spring curves */
.chat-input-actions button.scale-out {
    transform: scale(0) rotate(120deg);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-input-actions button.scale-in {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    pointer-events: all;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Premium Voice style matching Send button */
.chat-input-actions .mobile-voice-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-input-actions .mobile-voice-btn:hover {
    background: rgba(249, 134, 82, 0.15);
    color: var(--accent-color);
    border-color: rgba(249, 134, 82, 0.3);
    transform: scale(1.08) rotate(10deg);
}

.chat-input-actions .mobile-voice-btn.video-mode {
    color: #10b981;
    /* green camera color */
}

.chat-input-actions .mobile-voice-btn.video-mode:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

/* === RECORDING OVERLAY === */
.chat-input-recording-overlay {
    position: absolute;
    inset: 0;
    background: #1b1b1c;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    border: 1px dashed var(--accent-color);
    box-shadow: inset 0 0 15px rgba(249, 134, 82, 0.15);
    animation: recordingOverlaySlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes recordingOverlaySlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recording-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recording-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: breathingDot 1s infinite alternate;
}

@keyframes breathingDot {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
    }
}

.recording-timer {
    font-size: 15px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #ef4444;
}

.recording-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.recording-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recording-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.recording-action-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    transform: scale(1.1);
}

.recording-action-btn.lock:hover {
    background: rgba(249, 134, 82, 0.15);
    color: var(--accent-color);
}

/* === FLOATING CAMERA PREVIEW OVERLAY === */
.video-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.25s ease;
}

.video-preview-circle {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 35px rgba(249, 134, 82, 0.4);
    background: #000;
    transform: scale(0.9);
    animation: springScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes springScale {
    to {
        transform: scale(1);
    }
}

.video-preview-circle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* mirror front camera */
}

.video-preview-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 4px solid #ef4444;
    animation: previewPulse 1.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes previewPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* === VOICE MESSAGE PLAYER BUBBLE === */
.voice-message-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    padding: 2px 0;
}

.voice-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 3px 8px rgba(249, 134, 82, 0.3);
    flex-shrink: 0;
}

.voice-play-btn:hover {
    transform: scale(1.1);
}

.voice-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Emulated wave/progress track */
.voice-progress-container::before {
    content: '';
    display: block;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    position: relative;
}

.voice-wave-progress {
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    width: 0%;
    margin-top: -9px;
    /* sits directly on top of emulated track */
    transition: width 0.1s linear;
}

.message.own .voice-wave-progress {
    background: #fff;
}

.voice-duration {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.message.own .voice-duration {
    color: rgba(255, 255, 255, 0.7);
}

/* === CIRCULAR VIDEO MESSAGE BUBBLE === */
.message-bubble.video-bubble {
    border-radius: 50% !important;
    width: 180px !important;
    height: 180px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 3px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.message.own .message-bubble.video-bubble {
    border-color: var(--accent-color) !important;
}

.video-message-player {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-message-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === TELEGRAM CIRCULAR VIDEO PREMIUM OVERLAYS === */
.video-progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: rotate(-90deg);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.video-progress-ring.active {
    opacity: 1;
}

.video-progress-ring-path {
    transition: none !important;
}

.video-overlay-mute-status {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    z-index: 6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-bubble-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin-top: 4px;
}

.video-overlay-badge {
    position: absolute;
    bottom: -6px;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-family: inherit;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.video-duration-badge {
    left: -6px;
}

.video-time-badge {
    right: -6px;
}

.video-duration-text,
.video-time-text {
    font-size: 10px;
    font-weight: 600;
}

.video-unread-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: white;
    display: inline-block;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.video-status-icon {
    font-size: 9px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.video-status-icon i {
    font-size: 9px;
}

/* === FILE MESSAGE BOX === */
.file-message-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
    cursor: pointer;
    min-width: 200px;
}

.file-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(249, 134, 82, 0.15);
    border: 1px solid rgba(249, 134, 82, 0.3);
    color: var(--accent-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.message.own .file-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.file-message-box:hover .file-icon-wrapper {
    transform: scale(1.08);
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.file-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-all;
}

.message.own .file-name {
    color: white;
}

.file-size {
    font-size: 11px;
    color: var(--text-muted);
}

.message.own .file-size {
    color: rgba(255, 255, 255, 0.7);
}

/* === GIFT MESSAGE CARD === */
.message-bubble.gift-bubble {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(249, 134, 82, 0.1) 100%) !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15) !important;
}

.gift-message-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 4px;
}

.gift-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffd700;
    color: #111;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: giftCelebrate 2s infinite ease-in-out;
}

@keyframes giftCelebrate {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    10% {
        transform: rotate(-10deg) scale(1.1);
    }

    20% {
        transform: rotate(10deg) scale(1.1);
    }

    30% {
        transform: rotate(-10deg) scale(1.1);
    }

    40% {
        transform: rotate(10deg) scale(1.1);
    }

    50% {
        transform: rotate(0deg) scale(1);
    }
}

.gift-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.gift-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffd700;
}

.gift-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

/* === HORIZONTAL CHAT INPUT ALIGNMENT === */
.chat-input-container {
    align-items: center !important;
}

.mobile-input-extras {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0;
}

/* === TABBED EMOJI & STICKER PICKER === */
.emoji-picker-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
    gap: 16px;
    padding-bottom: 4px;
}

.picker-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    outline: none;
}

.picker-tab:hover {
    color: var(--text-primary);
}

.picker-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.picker-content {
    display: none;
}

.picker-content.active {
    display: block;
}

/* === STICKERS GRID === */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding: 4px;
}

.sticker-item {
    cursor: pointer;
    border-radius: 8px;
    padding: 4px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-item img,
.sticker-item svg {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.sticker-item:hover {
    transform: scale(1.18);
    background: rgba(255, 255, 255, 0.05);
}

/* Scrollbar styling for sticker grid */
.sticker-grid::-webkit-scrollbar {
    width: 4px;
}

.sticker-grid::-webkit-scrollbar-track {
    background: transparent;
}

.sticker-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.sticker-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}