/* ==========================================================================
   💎 TITAN CRM V8 - ULTIMATE DARK CORE
   ========================================================================== */
:root { 
    --bg-dark: #0b141a;       /* Fundo Chat (Deep Dark) */
    --bg-panel: #111b21;      /* Fundo Sidebar */
    --header: rgba(32, 44, 51, 0.95); /* Cabeçalhos com transparência */
    --primary: #00a884;       /* Verde WhatsApp */
    --primary-hover: #00c298;
    --danger: #ef5350;        /* Vermelho Suave */
    --success: #00cc99;       
    --text: #e9edef;          
    --text-sec: #8696a0;      
    --msg-in: #202c33;
    --msg-out: #005c4b;
    --border: rgba(134, 150, 160, 0.15);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }

/* Scrollbars Personalizadas (Webkit) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

body { 
    background-color: var(--bg-dark); 
    color: var(--text); 
    height: 100dvh; /* Importante para Mobile */
    width: 100vw; 
    overflow: hidden; 
    margin: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14.5px; 
    user-select: none;
}

.app-container { 
    display: flex; 
    height: 100%; 
    width: 100%; 
    position: relative; 
    overflow: hidden;
}

/* ==========================================================================
   SIDEBAR (LISTA DE CONTATOS)
   ========================================================================== */
.sidebar { 
    width: 400px; 
    background: var(--bg-panel); 
    border-right: 1px solid var(--border); 
    display: flex; 
    flex-direction: column; 
    z-index: 50; 
    flex-shrink: 0; 
    height: 100%;
    transition: transform 0.3s ease;
}

.sidebar-header { 
    height: 60px; 
    min-height: 60px;
    background: var(--header); 
    padding: 0 16px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px); /* Efeito Vidro */
}

/* Áreas de Conteúdo da Sidebar */
.tab-content { 
    flex: 1; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
}

/* Lista de Contatos Refinada */
.contact-item { 
    padding: 12px 16px; 
    border-bottom: 1px solid var(--border); 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    transition: background 0.2s;
    position: relative;
}
.contact-item:hover { background: rgba(255,255,255,0.03); }
.contact-item:active, .contact-item.active { background: #2a3942; }

.avatar { 
    width: 45px; height: 45px; 
    border-radius: 50%; 
    object-fit: cover; 
    flex-shrink: 0;
}
.contact-info { flex: 1; min-width: 0; }
.contact-header-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.contact-name { font-weight: 500; font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-time { font-size: 11px; color: var(--text-sec); font-weight: 400; flex-shrink: 0; margin-left: 6px; }
.contact-msg-row { display: flex; justify-content: space-between; align-items: center; }
.contact-msg { font-size: 13px; color: var(--text-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

/* 🟢 Estilo WhatsApp Oficial para Conversas NÃO LIDAS */
.contact-item.unread {
    background: rgba(0, 168, 132, 0.04);
    border-left: 3.5px solid #25D366;
}
.contact-item.unread:hover {
    background: rgba(0, 168, 132, 0.08);
}
.contact-item.unread .contact-name {
    font-weight: 700;
    color: #FFFFFF;
}
.contact-item.unread .contact-msg {
    color: #E9EDEF;
    font-weight: 600;
}
.contact-item.unread .contact-time {
    color: #25D366;
    font-weight: 700;
}

/* 🟢 Badge Verde Oficial do WhatsApp */
.unread-badge {
    background: #25D366;
    color: #111B21;
    font-size: 11px;
    font-weight: 800;
    min-width: 19px;
    height: 19px;
    border-radius: 10px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: unreadPulse 2s infinite ease-in-out;
}

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

/* 🏷️ Filtros de Conversas estilo WhatsApp Web */
.chat-filter-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.chat-filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab-btn {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-sec);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.filter-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}
.filter-tab-btn.active {
    background: #00A884;
    color: #FFFFFF;
    border-color: #00A884;
}
.filter-tab-badge {
    background: #25D366;
    color: #111B21;
    font-size: 10px;
    font-weight: 800;
    border-radius: 8px;
    padding: 1px 5px;
}
.filter-tab-btn.active .filter-tab-badge {
    background: #FFFFFF;
    color: #00A884;
}

/* ==========================================================================
   CHAT AREA (DIREITA)
   ========================================================================== */
.chat-area { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    background: var(--bg-dark); 
    position: relative; 
    min-width: 0; /* Impede overflow flex */
}

.chat-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    opacity: 0.06; pointer-events: none;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-repeat: repeat;
}

.chat-header { 
    height: 60px; 
    min-height: 60px;
    background: var(--header); 
    padding: 0 16px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    z-index: 20;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(5px);
}

.chat-body { 
    flex: 1; 
    overflow-y: auto; 
    padding: 20px 5%; 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    z-index: 10;
    scroll-behavior: smooth;
}

/* Footer de Envio */
.chat-footer {
    min-height: 62px;
    background: var(--header);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
}

/* Estilo das Mensagens (Bolhas) */

/* Estilos para as novas mídias */
.media-container {
    padding: 0;
    overflow: hidden;
}
.msg-image, .msg-video {
    max-width: 100%;
    min-width: 280px; /* Largura mínima para mídias */
    border-radius: 6px;
    display: block;
    cursor: pointer;
}
.caption {
    padding: 8px 4px 0;
    font-size: 14px;
    color: var(--text);
}
.audio-container {
    width: 280px;
}
.audio-container audio {
    width: 100%;
    filter: invert(1) sepia(1) saturate(0.5) hue-rotate(180deg);
}
.transcription-box {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
    font-size: 13px;
    font-style: italic;
    border-left: 2px solid var(--primary);
}
.document-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    min-width: 250px;
}
.document-container:hover {
    background: rgba(0,0,0,0.2);
}
.document-info {
    display: flex;
    flex-direction: column;
}
.document-info span {
    font-weight: 500;
}
.document-info small {
    font-size: 12px;
    color: var(--text-sec);
}
.msg-content {
    word-wrap: break-word;
}
.msg.in .document-container, .msg.in .audio-container {
    color: var(--text);
}
.msg.out .document-container, .msg.out .audio-container {
    color: var(--text);
}
.msg { 
    max-width: 75%; 
    padding: 0;
    border-radius: 8px; 
    font-size: 14.2px; 
    line-height: 19px; 
    color: var(--text); 
    position: relative; 
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    word-wrap: break-word;
}
.msg .msg-content {
    padding: 6px 9px 4px; 
}
.msg.in { background: var(--msg-in); align-self: flex-start; border-top-left-radius: 0; }
.msg.out { background: var(--msg-out); align-self: flex-end; border-top-right-radius: 0; }

.msg-meta { 
    display: flex; justify-content: flex-end; gap: 4px; 
    font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px;
}

/* Áudio Player Custom */
.audio-card { 
    display: flex; flex-direction: column; gap: 8px; min-width: 240px; 
    padding: 4px 0;
}
.btn-transcribe { 
    background: rgba(0, 0, 0, 0.2); 
    color: var(--success); 
    padding: 8px; 
    border-radius: 6px; 
    text-align: center; font-size: 12px; cursor: pointer; font-weight: 600;
    border: 1px dashed rgba(0, 168, 132, 0.3);
    transition: 0.2s;
}
.btn-transcribe:hover { background: rgba(0, 0, 0, 0.3); }

/* ==========================================================================
   COMPONENTES UI (INPUTS, BOTÕES, SIDEBAR RIGHT)
   ========================================================================== */

/* Formulários Modernos */
.form-control-dark { 
    background: #2a3942; 
    border: 1px solid transparent; 
    color: #fff; 
    padding: 12px 14px; /* Aumentado levemente para toque */
    width: 100%; 
    border-radius: 8px; 
    margin-bottom: 12px; 
    font-size: 16px !important; /* CRÍTICO: 16px impede zoom automático no iPhone */
    transition: 0.2s;
    appearance: none; /* Remove estilos nativos do OS */
}
.form-control-dark:focus { 
    background: #2a3942; 
    border-color: var(--primary); /* Feedback visual de foco melhorado */
    box-shadow: 0 0 0 1px var(--primary);
}

.btn-primary { 
    background: var(--primary); color: #111b21; border: none; 
    padding: 12px; width: 100%; border-radius: 24px; font-weight: 700; cursor: pointer; 
    transition: transform 0.1s, filter 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:hover { 
    filter: brightness(1.1); 
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.3); /* Glow suave */
}

/* Menu Flutuante (Ações Rápidas) */
.actions-menu { 
    position: absolute; 
    bottom: 80px; 
    left: 10px; 
    background: #233138; 
    padding: 8px; 
    border-radius: 16px; 
    display: none; 
    flex-direction: column; 
    gap: 4px; 
    z-index: 200; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.6); /* Sombra mais profunda */
    min-width: 220px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.actions-menu.active { 
    display: flex; 
    animation: slideUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.action-item { 
    padding: 14px; /* Área de toque maior */
    color: #fff; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 500;
    transition: background 0.2s;
}
.action-item:hover { background: rgba(255,255,255,0.08); }
.action-item i { width: 20px; text-align: center; }

@keyframes slideUp { 
    from { transform: translateY(20px) scale(0.9); opacity: 0; } 
    to { transform: translateY(0) scale(1); opacity: 1; } 
}

/* Sidebar Direita (Vitrine) */
.sidebar-right { 
    width: 0; 
    background: var(--bg-panel); 
    border-left: 1px solid var(--border); 
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    overflow: hidden; 
    display: flex; flex-direction: column; flex-shrink: 0;
    position: relative;
}
.sidebar-right.open { width: 360px; }

/* Navegação Mobile (Bottom Bar) */
.mobile-nav { 
    display: none; 
    height: 65px; /* Levemente mais alto */
    background: var(--bg-panel); 
    border-top: 1px solid var(--border);
    justify-content: space-around; 
    align-items: center; 
    z-index: 100;
    width: 100%;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone X+ safe area */
}
.nav-item { 
    background: none; border: none; color: var(--text-sec); 
    font-size: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; 
    width: 100%; height: 100%; justify-content: center;
    cursor: pointer;
    transition: color 0.2s;
}
.nav-item.active { color: var(--success); } /* Mudado para verde sucesso */
.nav-item.active i { transform: translateY(-2px); transition: transform 0.2s; }
.nav-item i { font-size: 20px; }

/* ==========================================================================
   📱 RESPONSIVIDADE & CORREÇÃO DE BUG MOBILE
   ========================================================================== */
.mobile-back { display: none; }
.hidden { display: none !important; }

@media (max-width: 900px) {
    /* 1. Reset da Estrutura 100% da tela mobile */
    html, body {
        height: 100% !important;
        height: 100dvh !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .app-container { 
        display: flex !important;
        flex-direction: row !important; 
        height: 100% !important;
        height: 100dvh !important; 
        width: 100vw !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* 2. Sidebar Principal (Lista de Chats) ocupa 100% da tela mobile verticalmente */
    .sidebar { 
        width: 100vw !important; 
        max-width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        border-right: none !important; 
        position: relative !important;
        z-index: 10;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 100% !important;
        overflow: hidden !important;
    }

    .sidebar-header {
        flex-shrink: 0 !important;
        height: calc(60px + env(safe-area-inset-top, 0px)) !important;
        min-height: calc(60px + env(safe-area-inset-top, 0px)) !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        box-sizing: border-box !important;
    }

    #sidebarContent {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-direction: column !important;
    }

    .tab-content {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        display: none;
        flex-direction: column;
    }

    .tab-content.active {
        display: flex !important;
    }

    .tab-content.hidden {
        display: none !important;
    }

    #tab-chats.active {
        display: flex !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    .search-container {
        flex-shrink: 0 !important;
    }

    #contactList {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        min-height: 0 !important;
    }
    
    /* 3. Correção do Chat Area (Slide Over) */
    .chat-area { 
        position: fixed !important; 
        top: 0 !important; 
        left: 0 !important; 
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important; 
        height: 100% !important;
        height: 100dvh !important; 
        z-index: 200 !important; /* Acima da sidebar */
        transform: translateX(100%); /* Escondido na direita */
        transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1); /* Animação suave */
        background: var(--bg-dark);
        will-change: transform;
    }

    .chat-header {
        flex-shrink: 0 !important;
        height: calc(60px + env(safe-area-inset-top, 0px)) !important;
        min-height: calc(60px + env(safe-area-inset-top, 0px)) !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        box-sizing: border-box !important;
    }
    
    /* 4. Classe ativada via JS para abrir o chat */
    .app-container.chat-open .chat-area { 
        transform: translateX(0) !important; 
    }
    
    /* 5. Menu de Navegação Inferior fixado e alinhado perfeitamente no rodapé */
    .mobile-nav { 
        display: flex !important;
        flex-shrink: 0 !important;
        height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
        min-height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        background: var(--bg-panel) !important;
        border-top: 1px solid var(--border) !important;
        width: 100% !important;
        z-index: 50 !important;
        margin-top: auto !important;
    }
    
    .mobile-back { 
        display: block; 
        margin-right: 8px; 
        font-size: 22px; 
        color: var(--text); 
        background: rgba(255,255,255,0.05); 
        border:none; 
        cursor: pointer;
        width: 40px; height: 40px; border-radius: 50%; /* Botão redondo */
        display: flex; align-items: center; justify-content: center;
    }
    
    /* Vitrine no Mobile (Overlay Total) */
    .sidebar-right.open { 
        position: fixed; 
        right: 0; top: 0; 
        width: 100%; /* Ocupa 100% para evitar cliques fantasmas */
        height: 100%; 
        z-index: 2000; 
        max-width: 100%;
        padding-top: env(safe-area-inset-top, 0px);
    }
    
    /* Ajuste do Menu de Ações no Mobile */
    .actions-menu {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        left: 5%;
        width: 90%; /* Mais largo para toque */
        min-width: unset;
        align-items: center; /* Centraliza itens se desejar */
    }
    
    /* Bolhas de mensagem otimizadas */
    .msg { font-size: 15px; max-width: 88%; padding: 8px 12px; }
    
    /* Ajuste de inputs para teclado */
    .chat-footer { padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   📸 ÁLBUM DE FOTOS DOS PRODUTOS (NUVEMSHOP / PWA)
   ========================================================================== */
.gallery-card {
    position: relative;
    background: #1f2c34;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: #00A884;
}
.gallery-card .product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.album-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(11, 20, 26, 0.85);
    color: #25D366;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 12px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Modal de Álbum de Fotos */
.album-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px;
}
.album-thumb-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #111B21;
    transition: all 0.2s ease;
}
.album-thumb-card:hover {
    border-color: #00A884;
    transform: scale(1.02);
}
.album-thumb-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
.album-thumb-actions {
    padding: 6px;
    display: flex;
    justify-content: center;
    background: #1f2c34;
}
.album-thumb-actions .btn {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* 🛡️ Z-INDEX ELEVATION: Garante que os modais abram ACIMA de qualquer sidebar ou vitrine */
.modal-backdrop {
    z-index: 2900 !important;
}
.modal-backdrop.show {
    z-index: 2900 !important;
}
.modal {
    z-index: 3050 !important;
}
#productAlbumModal {
    z-index: 3100 !important;
}

/* 📱 CORREÇÃO RESPONSIVA MODAL DISPAROS & CARRINHOS (MOBILE FIX) */
@media (max-width: 991px) {
    #campaignModal .modal-dialog {
        margin: 0 !important;
        max-width: 100vw !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }
    #campaignModal .modal-content {
        height: 100% !important;
        border-radius: 0 !important;
        max-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
    }
    #campaignModal .modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    #campaignModal .row.g-0 {
        min-height: unset !important;
        flex-direction: column !important;
    }
    #campaignModal .col-lg-6 {
        width: 100% !important;
    }
    #campaignLeadsContainer {
        max-height: 260px !important;
        min-height: 180px !important;
    }
    #campaignModal .modal-footer {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    #campaignModal .modal-footer .d-flex {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

/* ==========================================================================
   📸 ESTILOS WHATSAPP STATUS & STORIES (PIXEL PERFECT)
   ========================================================================== */

/* Anéis de Status Oficiais */
.status-ring {
    position: relative;
    border-radius: 50%;
    padding: 2.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.status-ring.unviewed {
    border: 2.5px solid #00a884;
}
.status-ring.viewed {
    border: 2.5px solid #8696a0;
}
.status-ring.my-status-ring {
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.status-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.status-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Card de Status Citado/Respondido dentro do Chat */
.quoted-status-card {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3.5px solid #00a884;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 6px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.quoted-status-card .status-badge-title {
    color: #00a884;
    font-weight: 700;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.quoted-status-card .status-quote-text {
    color: #e9edef;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* 📱 STORY VIEWER OVERLAY FULLSCREEN */
.story-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-viewer-overlay.d-none {
    display: none !important;
}
.story-viewer-container {
    width: 100%;
    max-width: 440px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #0b141a;
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
}

/* Barra de Progresso do Story */
.story-progress-container {
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    z-index: 30;
    display: flex;
    gap: 4px;
}
.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    overflow: hidden;
}
.story-progress-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    transition: width 0.05s linear;
}

/* Header do Story */
.story-header {
    position: absolute;
    top: 18px;
    left: 12px;
    right: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    padding: 6px 0;
}

/* Mídia do Story */
.story-media-container {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.story-image-content, .story-video-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.story-text-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    word-break: break-word;
}
.story-caption {
    position: absolute;
    bottom: 75px;
    left: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    z-index: 25;
}

/* Rodapé de Resposta Rápida */
.story-reply-container {
    position: absolute;
    bottom: 15px;
    left: 12px;
    right: 12px;
    z-index: 30;
}
