/* ============================================================
   MESSAGES SYSTEM — ULTRA-LUXE DIRECT MESSAGING SUITE
   Floating Chat Widget & Full-Screen /messages Suite
   Designed with Cyber-Luxe Glassmorphism, Theme Reactivity & Micro-Interactions
   ============================================================ */

/* ------------------------------------------------------------
   1. GLOBAL VARIABLES & PALETTE INTEGRATION
   ------------------------------------------------------------ */
:root {
    --msg-primary: var(--accent-gold, #e5b85a);
    --msg-primary-bright: var(--accent-gold-bright, #f5cf7b);
    --msg-primary-dim: var(--accent-gold-dim, #b88d3e);
    --msg-primary-glow: var(--accent-gold-glow-strong, rgba(229, 184, 90, 0.35));
    --msg-primary-gradient: linear-gradient(135deg, var(--accent-gold, #e5b85a) 0%, var(--accent-gold-bright, #f5cf7b) 100%);
    
    --msg-bg-glass: rgba(10, 11, 18, 0.82);
    --msg-bg-glass-heavy: rgba(8, 9, 15, 0.94);
    --msg-bg-card: rgba(18, 20, 32, 0.72);
    --msg-bg-card-hover: rgba(28, 30, 48, 0.85);
    
    --msg-bubble-out-bg: linear-gradient(135deg, rgba(229, 184, 90, 0.22) 0%, rgba(245, 207, 123, 0.10) 100%);
    --msg-bubble-out-border: rgba(229, 184, 90, 0.36);
    --msg-bubble-out-text: #fffdf5;
    
    --msg-bubble-in-bg: rgba(255, 255, 255, 0.055);
    --msg-bubble-in-border: rgba(255, 255, 255, 0.09);
    --msg-bubble-in-text: var(--text-primary, #f0ecf6);
    
    --msg-text-muted: var(--text-secondary, #9a94a6);
    --msg-text-subtle: var(--text-muted, #625c70);
    
    --msg-border-subtle: rgba(255, 255, 255, 0.08);
    --msg-border-highlight: rgba(255, 255, 255, 0.16);
    
    --msg-shadow-lg: 0 20px 60px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --msg-shadow-glow: 0 0 30px var(--msg-primary-glow);
    
    --msg-radius-xl: 24px;
    --msg-radius-lg: 18px;
    --msg-radius-md: 12px;
    --msg-radius-sm: 8px;
    --msg-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --msg-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hide floating chat on dedicated /messages page */
body[data-page="messages"] .msg-floating-launcher,
body[data-page="messages"] .msg-drawer-widget,
body:has(.msg-fullpage-container) .msg-floating-launcher,
body:has(.msg-fullpage-container) .msg-drawer-widget {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

.msg-floating-launcher {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--msg-primary-gradient);
    color: #08090f;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 32px var(--msg-primary-glow), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    z-index: 995;
    transition: transform 0.35s var(--msg-spring), box-shadow 0.3s ease, opacity 0.3s ease;
    user-select: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.msg-floating-launcher.has-unread,
.msg-floating-launcher.is-open {
    display: flex;
    animation: msgBadgeSpring 0.45s var(--msg-spring);
}

.msg-floating-launcher::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--msg-primary-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.msg-floating-launcher:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 14px 40px var(--msg-primary-glow), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.msg-floating-launcher:hover::before {
    opacity: 0.35;
    animation: msgLauncherHaloPulse 2s infinite ease-out;
}

.msg-floating-launcher:active {
    transform: scale(0.94);
}

@keyframes msgLauncherHaloPulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.35); opacity: 0; }
}

.msg-launcher-icon-wrap {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-launcher-icon,
.msg-launcher-close-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.35s var(--msg-spring), opacity 0.25s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

.msg-launcher-close-icon {
    transform: rotate(-90deg) scale(0.4);
    opacity: 0;
    pointer-events: none;
}

.msg-floating-launcher.is-open .msg-launcher-icon {
    transform: rotate(90deg) scale(0.4);
    opacity: 0;
}

.msg-floating-launcher.is-open .msg-launcher-close-icon {
    transform: rotate(0deg) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Unread Badge Pill */
.msg-unread-badge-pill {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff2d55 0%, #ef4444 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.75), 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 2.5px var(--bg-deep, #060609);
    animation: msgBadgeSpring 0.45s var(--msg-spring), msgBadgePulse 2.4s infinite ease-in-out;
    letter-spacing: -0.2px;
    z-index: 10;
}

@keyframes msgBadgePulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.75), 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 2.5px var(--bg-deep, #060609);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.95), 0 3px 8px rgba(0, 0, 0, 0.5), 0 0 0 2.5px var(--bg-deep, #060609);
        transform: scale(1.08);
    }
}

@keyframes msgBadgeSpring {
    0% { transform: scale(0); }
    70% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Nav Badge */
.nav-msg-btn {
    position: relative;
}

.nav-msg-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff2d55 0%, #ef4444 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7), 0 2px 5px rgba(0, 0, 0, 0.4);
    animation: msgBadgeSpring 0.45s var(--msg-spring);
    z-index: 5;
}

/* ------------------------------------------------------------
   2.5. FLOATING MESSAGE NOTIFICATION TOAST
   ------------------------------------------------------------ */
.msg-floating-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    pointer-events: none;
    transition: transform 0.4s var(--msg-spring), opacity 0.35s ease, visibility 0.35s ease;
    transform: translateY(-24px) scale(0.92);
    opacity: 0;
    visibility: hidden;
}

.msg-floating-toast.is-visible {
    pointer-events: auto;
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.msg-floating-toast-card {
    background: rgba(12, 14, 24, 0.94);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 51, 102, 0.32);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75), 0 0 28px rgba(255, 51, 102, 0.22);
    border-radius: 20px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 380px;
    min-width: 290px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.msg-floating-toast-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 51, 102, 0.6);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.8), 0 0 34px rgba(255, 51, 102, 0.35);
}

.msg-floating-toast-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.msg-floating-toast-avatar-wrap .avatar-img,
.msg-floating-toast-avatar-wrap .avatar-letter,
.msg-floating-toast-avatar-wrap .msg-toast-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 51, 102, 0.5);
}

.msg-toast-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff2d55;
    border: 2px solid #0c0e18;
    box-shadow: 0 0 8px rgba(255, 45, 85, 0.9);
}

.msg-floating-toast-content {
    flex: 1;
    min-width: 0;
}

.msg-floating-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.msg-floating-toast-sender {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    letter-spacing: -0.01em;
}

.msg-floating-toast-time {
    font-size: 10.5px;
    color: var(--msg-text-muted, #9a94a6);
    font-weight: 500;
}

.msg-floating-toast-text {
    font-size: 12.5px;
    color: var(--msg-text-muted, #b3adc2);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.msg-floating-toast-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.msg-floating-toast-reply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff2d55 0%, #ef4444 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.msg-floating-toast-reply-btn:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

.msg-floating-toast-close-btn {
    background: transparent;
    border: none;
    color: var(--msg-text-muted, #9a94a6);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.msg-floating-toast-close-btn:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    .msg-floating-toast {
        top: 14px;
        right: 14px;
        left: 14px;
    }
    .msg-floating-toast-card {
        max-width: 100%;
        min-width: 0;
    }
}

/* ------------------------------------------------------------
   3. FLOATING CHAT DRAWER / POPOVER WIDGET
   ------------------------------------------------------------ */
.msg-drawer-widget {
    position: fixed;
    bottom: 100px;
    right: 26px;
    width: 410px;
    max-width: calc(100vw - 36px);
    height: 620px;
    max-height: calc(100vh - 130px);
    background: var(--msg-bg-glass);
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    border: 1px solid var(--msg-border-highlight);
    border-radius: var(--msg-radius-xl);
    box-shadow: var(--msg-shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 996;
    opacity: 0;
    visibility: hidden;
    transform: translateY(28px) scale(0.92);
    transform-origin: bottom right;
    transition: opacity 0.35s var(--msg-ease),
                transform 0.35s var(--msg-spring),
                visibility 0.35s ease;
    overflow: hidden;
}

.msg-drawer-widget.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ------------------------------------------------------------
   4. CHAT HEADER COMPONENT
   ------------------------------------------------------------ */
.msg-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid var(--msg-border-subtle);
    flex-shrink: 0;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.msg-header-user-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex: 1;
}

.msg-header-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.msg-header-avatar,
.msg-header-avatar-wrap .badge-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.msg-header-user-group:hover .msg-header-avatar {
    transform: scale(1.05);
    border-color: var(--msg-primary);
}

.msg-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2.5px solid #0a0b12;
    background: #64748b;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.msg-status-dot.dot-online,
.msg-status-dot.dot-watching {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.85);
}

.msg-status-dot.dot-watching {
    animation: msgStatusPulse 2s infinite;
}

.msg-status-dot.dot-idle {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

.msg-status-dot.dot-offline {
    background: #64748b;
}

@keyframes msgStatusPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.msg-header-details {
    min-width: 0;
    flex: 1;
}

.msg-header-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.msg-header-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--msg-text-primary, #f0ecf6);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.msg-role-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 1.5px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.msg-role-tag.tag-admin {
    background: rgba(229, 184, 90, 0.18);
    color: var(--msg-primary, #e5b85a);
    border: 1px solid rgba(229, 184, 90, 0.35);
}

.msg-role-tag.tag-viewer {
    background: rgba(244, 114, 182, 0.18);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.35);
}

.msg-header-presence-sub {
    font-size: 12px;
    color: var(--msg-text-muted);
    margin: 1px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.msg-header-presence-sub .watching-highlight {
    color: #10b981;
    font-weight: 700;
}

.msg-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.msg-hdr-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--msg-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--msg-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.msg-hdr-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* In-Chat Search Bar in Header */
.msg-search-toggle-wrap {
    position: relative;
}

.msg-inchat-search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 18px;
    background: var(--msg-bg-glass-heavy);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--msg-border-subtle);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 9;
    animation: msgRowFadeIn 0.25s var(--msg-ease);
}

.msg-inchat-search-bar.is-open {
    display: flex;
}

.msg-inchat-search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--msg-border-subtle);
    border-radius: var(--msg-radius-sm);
    padding: 7px 12px;
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.msg-inchat-search-input:focus {
    border-color: var(--msg-primary);
}

.msg-inchat-search-close {
    font-size: 18px;
    color: var(--msg-text-muted);
    cursor: pointer;
    padding: 0 4px;
}

/* ------------------------------------------------------------
   5. MESSAGE THREAD & SCROLL CONTAINER
   ------------------------------------------------------------ */
.msg-body-container {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    position: relative;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
.msg-body-container::-webkit-scrollbar {
    width: 5px;
}

.msg-body-container::-webkit-scrollbar-track {
    background: transparent;
}

.msg-body-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.msg-body-container::-webkit-scrollbar-thumb:hover {
    background: var(--msg-primary);
}

/* Infinite Scroll / Older Messages Loading Spinner */
.msg-older-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--msg-text-muted);
    width: 100%;
}

.msg-older-loading.is-active {
    display: flex;
}

.msg-older-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--msg-primary);
    border-radius: 50%;
    animation: msgSpinnerRotate 0.65s linear infinite;
}

@keyframes msgSpinnerRotate {
    to { transform: rotate(360deg); }
}

/* Date Divider */
.msg-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px 0 6px;
    position: relative;
    width: 100%;
}

.msg-date-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
}

.msg-date-divider span {
    position: relative;
    font-size: 11px;
    font-weight: 700;
    color: var(--msg-text-muted);
    background: rgba(22, 24, 38, 0.9);
    backdrop-filter: blur(12px);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--msg-border-subtle);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Empty Conversation State */
.msg-empty-state {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    max-width: 320px;
    animation: msgRowFadeIn 0.4s var(--msg-ease);
}

.msg-empty-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--msg-primary-glow) 0%, rgba(255,255,255,0.03) 70%);
    border: 1px solid var(--msg-border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.msg-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.msg-empty-desc {
    font-size: 13px;
    color: var(--msg-text-muted);
    margin: 0 0 16px;
    line-height: 1.45;
}

.msg-empty-starters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.msg-empty-starter-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--msg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.msg-empty-starter-chip:hover {
    background: rgba(229, 184, 90, 0.15);
    border-color: var(--msg-primary);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------
   6. MESSAGE ROWS & BUBBLE STYLING
   ------------------------------------------------------------ */
.msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    position: relative;
    max-width: 84%;
    animation: msgRowFadeIn 0.3s var(--msg-ease);
    touch-action: pan-y;
}

/* Swipe-to-Reply Indicator */
.msg-swipe-reply-hint {
    position: absolute;
    left: -36px;
    top: 50%;
    transform: translateY(-50%) scale(0.65);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(22, 24, 38, 0.95);
    border: 1px solid var(--msg-border-highlight);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--msg-text-muted);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, color 0.15s ease;
}

.msg-swipe-reply-hint svg {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(0deg);
}

.msg-row.is-swiping .msg-swipe-reply-hint {
    opacity: 1;
}

.msg-row.is-swipe-ready .msg-swipe-reply-hint {
    background: var(--accent-gold, #e5b85a) !important;
    border-color: var(--accent-gold, #e5b85a) !important;
    color: #090a0f !important;
    transform: translateY(-50%) scale(1.15) !important;
    box-shadow: 0 0 16px rgba(229, 184, 90, 0.6) !important;
}

.msg-row.is-swipe-ready .msg-swipe-reply-hint svg {
    transform: rotate(-15deg) scale(1.1);
}

@keyframes msgRowFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.msg-row-incoming {
    align-self: flex-start;
}

.msg-row-outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-bubble-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    will-change: transform;
}

.msg-row-outgoing .msg-bubble-wrap {
    align-items: flex-end;
}

.msg-row-incoming .msg-bubble-wrap {
    align-items: flex-start;
}

/* Hover Action Toolbar */
.msg-action-toolbar {
    position: absolute;
    top: -34px;
    display: none;
    align-items: center;
    background: rgba(14, 16, 26, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--msg-border-highlight);
    border-radius: 20px;
    padding: 3px 6px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 5;
    animation: msgToolbarPop 0.2s var(--msg-spring);
}

@keyframes msgToolbarPop {
    0% { transform: translateY(6px) scale(0.85); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.msg-row:hover .msg-action-toolbar {
    display: flex;
}

.msg-row-outgoing .msg-action-toolbar {
    right: 0;
}

.msg-row-incoming .msg-action-toolbar {
    left: 0;
}

.msg-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--msg-text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
    border: none;
    background: transparent;
}

.msg-action-btn:hover {
    transform: scale(1.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.msg-action-btn.btn-delete:hover {
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.2);
}

/* Quick Reaction Bar in Toolbar */
.msg-quick-react-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 2px;
}

.msg-react-emoji-btn {
    font-size: 14px;
    padding: 2px 3px;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.2s ease;
    border-radius: 6px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.msg-react-emoji-btn .wa-emoji {
    width: 16px;
    height: 16px;
}

.msg-react-emoji-btn:hover {
    transform: scale(1.35) translateY(-2px);
    filter: drop-shadow(0 2px 5px rgba(255, 200, 60, 0.3));
}

.msg-react-emoji-btn:active {
    transform: scale(1.05);
    transition-duration: 0.08s;
}

/* Message Bubble */
.msg-bubble {
    padding: 7px 13px;
    border-radius: 15px;
    font-size: 13.5px;
    line-height: 1.42;
    word-break: break-word;
    position: relative;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.msg-row-outgoing .msg-bubble {
    background: var(--msg-bubble-out-bg);
    border: 1px solid var(--msg-bubble-out-border);
    color: var(--msg-bubble-out-text);
    border-bottom-right-radius: 4px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.22), 0 0 12px rgba(229, 184, 90, 0.06);
}

.msg-row-incoming .msg-bubble {
    background: var(--msg-bubble-in-bg);
    border: 1px solid var(--msg-bubble-in-border);
    color: var(--msg-bubble-in-text);
    border-bottom-left-radius: 4px;
}

/* WhatsApp Floating Emojis: Remove outer bubble background & border when message is only emojis */
.msg-bubble:has(> .msg-text-content.msg-jumbo-1:only-child),
.msg-bubble:has(> .msg-text-content.msg-jumbo-2:only-child),
.msg-bubble:has(> .msg-text-content.msg-jumbo-3:only-child),
.msg-bubble.is-emoji-only-bubble {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1px 2px !important;
}

.msg-row-outgoing .msg-bubble.is-emoji-only-bubble,
.msg-row-incoming .msg-bubble.is-emoji-only-bubble {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* WhatsApp / Apple Color Emoji Rendering */
.wa-emoji,
img.emoji {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.16em;
    display: inline-block;
    object-fit: contain;
    margin: 0 1px;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    image-rendering: -webkit-optimize-contrast;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.wa-raw-emoji {
    display: inline-block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
    font-style: normal;
    line-height: 1;
    vertical-align: -0.1em;
}

.msg-text-content {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
    line-height: 1.42;
    font-size: 13.5px;
}

/* WhatsApp Jumbo Emoji sizes (Compact & Balanced) */
.msg-text-content.msg-jumbo-1 {
    font-size: 0;
    line-height: 1;
    padding: 2px 1px;
}
.msg-text-content.msg-jumbo-1 .wa-emoji,
.msg-text-content.msg-jumbo-1 img.emoji {
    width: 26px;
    height: 26px;
    margin: 1px;
    animation: waEmojiPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.msg-text-content.msg-jumbo-2 {
    font-size: 0;
    line-height: 1;
    padding: 2px 1px;
}
.msg-text-content.msg-jumbo-2 .wa-emoji,
.msg-text-content.msg-jumbo-2 img.emoji {
    width: 22px;
    height: 22px;
    margin: 1px;
    animation: waEmojiPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.msg-text-content.msg-jumbo-3 {
    font-size: 0;
    line-height: 1;
    padding: 1px;
}
.msg-text-content.msg-jumbo-3 .wa-emoji,
.msg-text-content.msg-jumbo-3 img.emoji {
    width: 19px;
    height: 19px;
    margin: 1px;
    animation: waEmojiPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes waEmojiPop {
    0% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    60% {
        transform: scale(1.12);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Reactions Pill Badge attached to Bubble */
.msg-reactions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    padding: 0 2px;
}

.msg-reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    background: rgba(18, 20, 32, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--msg-border-subtle);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.msg-reaction-badge .wa-emoji {
    width: 13px;
    height: 13px;
}

.msg-reaction-badge:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: var(--msg-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4),
                0 0 12px var(--msg-primary-glow);
}

.msg-reaction-badge:active {
    transform: scale(0.95);
}

.msg-reaction-badge.is-user-reacted {
    background: rgba(229, 184, 90, 0.18);
    border-color: var(--msg-primary);
    color: var(--msg-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
                0 0 8px rgba(229, 184, 90, 0.15);
}

/* Meta Row (Time & Read Status) */
.msg-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--msg-text-muted);
    margin-top: 4px;
    padding: 0 4px;
    font-variant-numeric: tabular-nums;
}

.msg-seen-check {
    display: inline-flex;
    align-items: center;
    color: var(--msg-text-muted);
    font-weight: 700;
    font-size: 11px;
    transition: color 0.3s ease;
}

.msg-seen-check.is-seen {
    color: #38bdf8; /* Luminous cyan */
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* ------------------------------------------------------------
   7. CINEMATIC SHARED VIDEO CARDS
   ------------------------------------------------------------ */
.msg-video-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(10, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--msg-radius-md);
    overflow: hidden;
    width: 280px;
    max-width: 100%;
    margin-bottom: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s var(--msg-ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.msg-video-card:hover {
    transform: translateY(-3px);
    border-color: var(--msg-primary);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px var(--msg-primary-glow);
}

.msg-video-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.msg-video-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.msg-video-card:hover .msg-video-card-thumb-img {
    transform: scale(1.06);
}

.msg-video-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    padding: 2.5px 7px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-variant-numeric: tabular-nums;
}

.msg-video-card-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--msg-primary-gradient);
    color: #08090f;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s var(--msg-spring), box-shadow 0.25s ease;
}

.msg-video-card:hover .msg-video-card-play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 8px 24px var(--msg-primary-glow);
}

.msg-video-card-info {
    padding: 10px 12px;
}

.msg-video-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.msg-video-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg-video-action-btn {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.msg-video-action-btn.btn-watch-now {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.msg-video-action-btn.btn-watch-now:hover {
    background: var(--msg-primary);
    color: #000;
    border-color: var(--msg-primary);
}

.msg-video-action-btn.btn-wt-together {
    background: rgba(229, 184, 90, 0.15);
    color: var(--msg-primary);
    border: 1px solid rgba(229, 184, 90, 0.3);
}

.msg-video-action-btn.btn-wt-together:hover {
    background: var(--msg-primary);
    color: #000;
}

/* ------------------------------------------------------------
   8. INTERACTIVE VOICE NOTE PLAYER
   ------------------------------------------------------------ */
.msg-voice-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    max-width: 320px;
    padding: 6px 0;
    user-select: none;
}

.msg-voice-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--msg-primary-gradient);
    color: #08090f;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--msg-primary-glow);
    transition: transform 0.25s var(--msg-spring), box-shadow 0.2s ease;
}

.msg-voice-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--msg-primary-glow);
}

.msg-voice-waveform-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.msg-voice-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    width: 100%;
}

.msg-wave-bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    height: 8px;
    transition: height 0.15s ease, background 0.15s ease;
}

.msg-wave-bar.is-passed {
    background: var(--msg-primary);
}

.msg-voice-player.is-playing .msg-wave-bar {
    animation: msgWaveDance 0.85s ease infinite alternate;
}

.msg-wave-bar:nth-child(1) { height: 10px; }
.msg-wave-bar:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.msg-wave-bar:nth-child(3) { height: 22px; animation-delay: 0.2s; }
.msg-wave-bar:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.msg-wave-bar:nth-child(5) { height: 18px; animation-delay: 0.15s; }
.msg-wave-bar:nth-child(6) { height: 24px; animation-delay: 0.25s; }
.msg-wave-bar:nth-child(7) { height: 14px; animation-delay: 0.35s; }
.msg-wave-bar:nth-child(8) { height: 20px; animation-delay: 0.05s; }
.msg-wave-bar:nth-child(9) { height: 12px; animation-delay: 0.22s; }
.msg-wave-bar:nth-child(10) { height: 16px; animation-delay: 0.18s; }

@keyframes msgWaveDance {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1.25); }
}

.msg-voice-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--msg-text-muted);
    font-variant-numeric: tabular-nums;
}

.msg-voice-speed-btn {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--msg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.15s ease;
}

.msg-voice-speed-btn:hover {
    background: var(--msg-primary);
    color: #000;
}

/* ------------------------------------------------------------
   9. TYPING INDICATOR BUBBLE
   ------------------------------------------------------------ */
.msg-typing-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    align-self: flex-start;
    animation: msgRowFadeIn 0.25s ease;
}

.msg-typing-bubble {
    padding: 10px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    background: var(--msg-bubble-in-bg);
    border: 1px solid var(--msg-bubble-in-border);
    display: flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.msg-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--msg-primary);
    animation: msgTypingPulse 1.4s infinite ease-in-out;
}

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

@keyframes msgTypingPulse {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* ------------------------------------------------------------
   10. COMPOSER & INPUT SUITE
   ------------------------------------------------------------ */
.msg-footer {
    padding: 14px 16px;
    background: rgba(14, 16, 26, 0.85);
    border-top: 1px solid var(--msg-border-subtle);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 10;
}

/* Quick Emoji Bar & Labels (Permanently hidden for minimal sleek input bar) */
.msg-quick-emojis,
.msg-quick-emoji-btn,
.msg-emoji-label,
.msg-emoji-header,
.emoji-picker-label,
.emoji-picker-header,
.msg-composer-emoji-label {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.msg-quick-emoji-btn:hover {
    transform: scale(1.3) translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.msg-quick-emoji-btn:active {
    transform: scale(1.05);
    transition-duration: 0.08s;
}

/* Input Row */
.msg-input-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.msg-input-wrap {
    flex: 1 1 0%;
    min-width: 0;
    width: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.msg-input-wrap:focus-within {
    border-color: var(--msg-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px var(--msg-primary-glow);
}

.msg-textarea {
    flex: 1 1 0%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    line-height: 1.45;
    outline: none;
    padding: 5px 0;
    word-break: break-word;
}

.msg-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.msg-composer-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--msg-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.msg-composer-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.2,0,0,1), opacity 0.3s ease;
    pointer-events: none;
}

.msg-composer-btn:active::after {
    opacity: 1;
    transform: scale(2);
    transition: transform 0s, opacity 0s;
}

.msg-composer-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.msg-composer-btn:active {
    transform: scale(0.9);
}

/* WhatsApp Emoji Picker Toggle Button */
.msg-emoji-toggle-btn {
    color: var(--msg-text-muted, #9a94a6);
}
.msg-emoji-toggle-btn:hover {
    color: var(--accent-gold, #e5b85a);
    background: rgba(229, 184, 90, 0.12);
    border-color: rgba(229, 184, 90, 0.28);
    transform: translateY(-2px) scale(1.08);
}

/* WhatsApp Style Floating Emoji Picker */
.wa-emoji-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 8px;
    width: 320px;
    max-width: calc(100vw - 24px);
    height: 290px;
    background: rgba(14, 15, 24, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12));
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 24px rgba(229, 184, 90, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 120;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-emoji-picker.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wa-picker-header {
    padding: 8px 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

.wa-picker-tabs {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
}

.wa-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 6px 4px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    opacity: 0.65;
}

.wa-tab-btn .wa-emoji {
    width: 20px;
    height: 20px;
}

.wa-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.9;
    transform: translateY(-1px);
}

.wa-tab-btn.active {
    background: rgba(229, 184, 90, 0.16);
    border: 1px solid rgba(229, 184, 90, 0.3);
    opacity: 1;
}

.wa-picker-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.wa-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    align-items: center;
    justify-items: center;
}

.wa-picker-item {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.18s ease;
}

.wa-picker-item .wa-emoji {
    width: 26px;
    height: 26px;
}

.wa-picker-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.3);
    z-index: 2;
}

.wa-picker-item:active {
    transform: scale(1.05);
}

.msg-send-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 14px;
    background: var(--msg-primary-gradient);
    color: #08090f;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 6px 20px var(--msg-primary-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.msg-send-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.msg-send-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow:
        0 8px 28px var(--msg-primary-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.msg-send-btn:hover::before {
    opacity: 1;
}

.msg-send-btn:active {
    transform: scale(0.88);
    transition-duration: 0.1s;
    box-shadow:
        0 2px 8px var(--msg-primary-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Voice Recording Capsule HUD (Visible ONLY while recording is active) */
.msg-recording-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--msg-text-muted, rgba(255, 255, 255, 0.45));
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
    animation: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.msg-recording-bar .msg-rec-cancel-btn,
.msg-recording-bar .msg-rec-send-btn {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.msg-recording-bar.is-recording {
    display: flex !important;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.2);
    animation: msgRowFadeIn 0.25s ease;
}

.msg-recording-bar.is-recording .msg-rec-cancel-btn,
.msg-recording-bar.is-recording .msg-rec-send-btn {
    opacity: 1;
    pointer-events: auto;
}

/* While recording voice, hide regular input row for a clean dedicated voice recording HUD */
.msg-composer-wrap.is-voice-recording .msg-input-row,
.msg-composer-wrap.is-voice-recording .msg-reply-bar,
.msg-composer-wrap.is-voice-recording .msg-attach-video-modal {
    display: none !important;
}

.msg-rec-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: msgStatusPulse 1s infinite;
    display: none;
}

.msg-recording-bar.is-recording .msg-rec-dot {
    display: inline-block;
}

/* ------------------------------------------------------------
   11. ATTACH VIDEO MODAL
   ------------------------------------------------------------ */
.msg-attach-video-modal {
    position: absolute;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: var(--msg-bg-glass-heavy);
    backdrop-filter: blur(28px);
    border: 1px solid var(--msg-border-highlight);
    border-radius: var(--msg-radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    z-index: 997;
    animation: msgRowFadeIn 0.25s var(--msg-spring);
}

.msg-attach-video-modal.is-open {
    display: flex;
}

.msg-attach-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.msg-attach-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--msg-border-subtle);
    border-radius: var(--msg-radius-sm);
    padding: 6px 12px;
    font-size: 12px;
    color: #fff;
    outline: none;
}

.msg-attach-search-input:focus {
    border-color: var(--msg-primary);
}

.msg-attach-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.msg-attach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
}

.msg-attach-item:hover {
    background: rgba(229, 184, 90, 0.15);
    border-color: var(--msg-primary);
    transform: translateX(3px);
}

.msg-attach-thumb {
    width: 54px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: #000;
}

.msg-attach-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* ------------------------------------------------------------
   12. FULL-PAGE CHAT VIEW (/messages)
   ------------------------------------------------------------ */
.msg-fullpage-container {
    max-width: 1320px;
    margin: 16px auto 36px;
    padding: 0 20px;
    min-height: calc(100vh - 110px);
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.msg-fullpage-sidebar {
    background: var(--msg-bg-glass);
    backdrop-filter: blur(28px);
    border: 1px solid var(--msg-border-highlight);
    border-radius: var(--msg-radius-xl);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--msg-shadow-lg);
    height: calc(100vh - 110px);
    overflow-y: auto;
}

.msg-sidebar-profile {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--msg-border-subtle);
}

.msg-sidebar-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.msg-sidebar-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--msg-primary);
    box-shadow: 0 8px 28px var(--msg-primary-glow);
}

/* Live Watching Card in Sidebar */
.msg-sidebar-watching-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 18, 11, 0.8) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--msg-radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: msgRowFadeIn 0.3s ease;
}

.msg-sidebar-watching-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msg-sidebar-watching-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stats Grid */
.msg-sidebar-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.msg-stat-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--msg-border-subtle);
    border-radius: var(--msg-radius-md);
    padding: 14px 10px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.msg-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--msg-primary);
}

.msg-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--msg-primary);
    font-variant-numeric: tabular-nums;
}

.msg-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--msg-text-muted);
    margin-top: 3px;
}

/* Shared Media Explorer Tabs */
.msg-sidebar-media-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.msg-media-tab-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--msg-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--msg-border-subtle);
    color: var(--msg-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.msg-media-tab-btn:hover,
.msg-media-tab-btn.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: var(--msg-primary);
}

.msg-media-tab-btn span.tab-count {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.msg-fullpage-main {
    background: var(--msg-bg-glass);
    backdrop-filter: blur(32px);
    border: 1px solid var(--msg-border-highlight);
    border-radius: var(--msg-radius-xl);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);
    overflow: hidden;
    box-shadow: var(--msg-shadow-lg);
}

/* Floating Emoji Particle Burst Effect */
.msg-emoji-burst-particle {
    position: fixed;
    pointer-events: none;
    font-size: 24px;
    z-index: 9999;
    animation: msgEmojiFloat 1.2s ease-out forwards;
}

@keyframes msgEmojiFloat {
    0% { transform: translate(0, 0) scale(0.6) rotate(0deg); opacity: 1; }
    50% { transform: translate(var(--dx, 20px), -60px) scale(1.3) rotate(var(--rot, 15deg)); opacity: 0.9; }
    100% { transform: translate(var(--dx, 40px), -120px) scale(0.8) rotate(var(--rot, 30deg)); opacity: 0; }
}

/* ------------------------------------------------------------
   13. RESPONSIVENESS & MOBILE ADAPTATION
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    body[data-page="messages"],
    body:has(.msg-fullpage-container) {
        overflow: hidden !important;
        height: 100vh !important;
        height: 100dvh !important;
        height: 100svh !important;
        position: fixed !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        padding-bottom: 0 !important;
    }

    body[data-page="messages"] .app-container,
    body:has(.msg-fullpage-container) .app-container {
        height: 100% !important;
        height: 100dvh !important;
        height: 100svh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    body[data-page="messages"] .navbar,
    body:has(.msg-fullpage-container) .navbar {
        flex-shrink: 0 !important;
        padding: 10px 14px !important;
    }

    .msg-fullpage-container {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }

    .msg-fullpage-sidebar {
        display: none !important;
    }

    .msg-fullpage-main {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        height: 100% !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        overflow: hidden !important;
    }

    .msg-header {
        padding: 10px 14px !important;
        flex-shrink: 0 !important;
    }

    .msg-body-container {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 12px 10px !important;
    }

    .msg-footer {
        flex-shrink: 0 !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 6px !important;
        position: relative !important;
        z-index: 20 !important;
        background: rgba(10, 11, 18, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    .msg-floating-launcher {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        right: 18px;
        width: 54px;
        height: 54px;
    }

    .msg-drawer-widget {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        height: 88vh;
        height: 88dvh;
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        overscroll-behavior-y: contain;
    }

    .msg-drawer-widget.is-open {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .msg-footer {
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 5px !important;
    }

    .msg-input-row {
        gap: 4px !important;
    }

    .msg-input-wrap {
        padding: 5px 8px !important;
        border-radius: 14px !important;
    }

    .msg-textarea {
        font-size: 14px !important;
    }

    .msg-composer-btn {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        border-radius: 11px !important;
    }

    .msg-send-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 12px !important;
    }

    .msg-send-btn svg {
        width: 17px !important;
        height: 17px !important;
    }

    .msg-quick-emoji-btn {
        font-size: 15px !important;
        padding: 4px 7px !important;
    }
}

/* ---- Sunset Velvet / Hajera Romantic Messaging Enhancements ---- */
html[data-theme="sunset"] .msg-bubble-out,
body[data-user="hajera"] .msg-bubble-out {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.28) 0%, rgba(251, 113, 133, 0.14) 100%);
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 4px 18px rgba(244, 63, 94, 0.15);
}

html[data-theme="sunset"] .msg-quick-emoji-btn:hover,
body[data-user="hajera"] .msg-quick-emoji-btn:hover {
    background: rgba(244, 63, 94, 0.18);
    transform: scale(1.22);
}

html[data-theme="sunset"] .msg-floating-launcher,
body[data-user="hajera"] .msg-floating-launcher {
    background: linear-gradient(135deg, #fed7aa 0%, #fb7185 30%, #f43f5e 70%, #be123c 100%);
    box-shadow: 0 10px 32px rgba(244, 63, 94, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* ============================================================
   14. WHATSAPP-STYLE QUOTED MESSAGE IN BUBBLE
   ============================================================ */
.msg-quote-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    margin-bottom: 7px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s var(--msg-spring), background 0.2s ease, border-color 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.msg-row-incoming .msg-quote-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.msg-quote-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.msg-quote-card:active {
    transform: scale(0.98);
}

.msg-quote-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: var(--msg-primary);
}

.msg-quote-card.is-reply-to-me .msg-quote-bar {
    background: var(--msg-primary);
}

.msg-quote-card.is-reply-to-partner .msg-quote-bar {
    background: #38bdf8;
}

body[data-user="muaj"] .msg-quote-card.is-reply-to-partner .msg-quote-bar {
    background: #f472b6;
}

.msg-quote-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 2px;
}

.msg-quote-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.1px;
    color: var(--msg-primary);
    text-transform: capitalize;
}

.msg-quote-card.is-reply-to-partner .msg-quote-author {
    color: #38bdf8;
}

body[data-user="muaj"] .msg-quote-card.is-reply-to-partner .msg-quote-author {
    color: #f472b6;
}

.msg-quote-snippet {
    font-size: 12px;
    line-height: 1.35;
    color: var(--msg-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.msg-quote-media-indicator {
    font-weight: 700;
    color: #fff;
}

.msg-quote-deleted {
    color: #ef4444;
    font-style: italic;
    font-size: 11.5px;
}

.msg-quote-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ------------------------------------------------------------
   15. COMPOSER QUOTED REPLY BAR
   ------------------------------------------------------------ */
.msg-reply-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(22, 25, 40, 0.96);
    backdrop-filter: blur(24px);
    border: 1px solid var(--msg-border-highlight);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    animation: msgReplySlideIn 0.3s var(--msg-spring);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

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

.msg-reply-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.msg-reply-bar-indicator {
    width: 3.5px;
    height: 32px;
    border-radius: 2px;
    background: var(--msg-primary);
    flex-shrink: 0;
}

.msg-reply-bar-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msg-reply-bar-header {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--msg-primary);
    letter-spacing: -0.1px;
}

.msg-reply-bar-snippet {
    font-size: 12.5px;
    color: var(--msg-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.msg-reply-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.msg-reply-bar-thumb img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.msg-reply-bar-cancel {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--msg-text-muted);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.msg-reply-bar-cancel:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

/* ------------------------------------------------------------
   16. CLICK-TO-JUMP TARGET HIGHLIGHT ANIMATION
   ------------------------------------------------------------ */
.msg-row.msg-row-target-highlight .msg-bubble {
    animation: msgTargetPulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes msgTargetPulse {
    0% {
        transform: scale(1.04);
        box-shadow: 0 0 32px var(--msg-primary-glow), 0 0 0 2px var(--msg-primary);
        filter: brightness(1.25);
    }
    35% {
        transform: scale(1.03);
        box-shadow: 0 0 24px var(--msg-primary-glow), 0 0 0 2px var(--msg-primary);
        filter: brightness(1.18);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
        filter: brightness(1);
    }
}

/* ------------------------------------------------------------
   17. MOBILE LONG-PRESS ACTIONS MODAL & SWIPE GESTURES
   ------------------------------------------------------------ */
.msg-mobile-actions-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 12, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.msg-mobile-actions-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.msg-mobile-actions-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(16, 18, 30, 0.98);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    border-top: 1px solid var(--msg-border-highlight);
    border-radius: 26px 26px 0 0;
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    z-index: 10001;
    max-width: 500px;
    margin: 0 auto;
}

.msg-mobile-actions-backdrop.is-open .msg-mobile-actions-sheet {
    transform: translateY(0);
}

.msg-mobile-actions-pill {
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
    margin: 0 auto 2px;
}

.msg-mobile-reactions-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.msg-mobile-react-btn {
    font-size: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 10px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.msg-mobile-react-btn:active {
    transform: scale(1.4);
}

.msg-mobile-actions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msg-mobile-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary, #fff);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.msg-mobile-action-item:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.msg-row.is-swipe-ready {
    border-left: 3px solid var(--msg-primary);
}

@keyframes pushBannerSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

