/* ---- Base ---- */
html { font-size: 14px; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #1a1a1a; background: #f4f6f9; }

.header {
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

/* ---- Message Centre ---- */

.msg-centre-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.msg-centre-page-header h1 {
    font-weight: 700 !important;
    margin: 0;
    font-size: 1.6rem;
}
.msg-centre-page-header .fa {
    font-size: 1.5rem;
    color: #0078d4;
}
.msg-centre-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.msg-centre-breadcrumb a {
    color: #0078d4;
}
.msg-centre-breadcrumb .fa-chevron-right {
    font-size: 10px;
    color: #aaa;
    margin: 0 4px;
}

.msg-centre-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.msg-centre-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: #fff;
    flex-wrap: wrap;
    gap: 8px;
}
.msg-centre-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}
.msg-centre-header .badge {
    background: rgba(255,255,255,.2);
    color: #fff;
    font-weight: 500;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
}
.msg-centre-search {
    position: relative;
}
.msg-centre-search input {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 20px;
    padding: 5px 14px 5px 32px;
    font-size: 13px;
    width: 180px;
    transition: background .2s, width .2s;
}
.msg-centre-search input::placeholder {
    color: rgba(255,255,255,.6);
}
.msg-centre-search input:focus {
    background: rgba(255,255,255,.25);
    outline: none;
    width: 220px;
    box-shadow: none;
}
.msg-centre-search .fa {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.6);
    font-size: 13px;
}

/* Visitor details panel */
.visitor-details-panel {
    background: #edf4fc;
    border-bottom: 1px solid #d0dce8;
    padding: 10px 20px;
}
.visitor-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}
.visitor-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.visitor-detail-item .fa {
    color: #0078d4;
    font-size: 13px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.visitor-detail-item a {
    color: #0078d4;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
}
.visitor-detail-item a:hover {
    text-decoration: underline;
}

.msg-centre-body {
    height: 460px;
    overflow-y: auto;
    padding: 16px 20px;
    background: #f7f9fc;
}
.msg-centre-body::-webkit-scrollbar {
    width: 6px;
}
.msg-centre-body::-webkit-scrollbar-thumb {
    background: #c0c6cc;
    border-radius: 3px;
}

.msg-centre-footer {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border-top: 1px solid #e8ecef;
}
.msg-reply-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.msg-reply-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.msg-reply-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.msg-centre-footer textarea {
    flex: 1;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    max-height: 200px;
    transition: border-color .2s;
    font-family: inherit;
}
.msg-centre-footer textarea:focus {
    border-color: #0078d4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,120,212,.12);
}
.msg-centre-footer .btn-send,
.btn-send {
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.msg-centre-footer .btn-send:hover:not(:disabled),
.btn-send:hover:not(:disabled) {
    opacity: .9;
    transform: translateY(-1px);
}
.msg-centre-footer .btn-send:disabled,
.btn-send:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Message bubbles */
.msg-bubble-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: flex-start;
}
.msg-bubble-wrap--self {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    letter-spacing: .5px;
}
.msg-avatar--other {
    background: #0078d4;
}
.msg-avatar--self {
    background: #107c10;
}

.msg-bubble {
    max-width: 70%;
    padding: 10px 16px;
    border-radius: 12px;
    position: relative;
    word-wrap: break-word;
    line-height: 1.45;
}
.msg-bubble--other {
    background: #fff;
    border: 1px solid #e0e4ea;
    border-top-left-radius: 2px;
    color: #1a1a1a;
}
.msg-bubble--self {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-top-right-radius: 2px;
    color: #1a1a1a;
}

.msg-sender {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}
.msg-bubble--other .msg-sender {
    color: #0078d4;
}
.msg-bubble--self .msg-sender {
    color: #107c10;
}

.msg-text {
    font-size: 14px;
    color: #333;
    white-space: pre-wrap;
}

.msg-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

/* Sidebar card */
.msg-info-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    padding: 20px;
}

/* Conversation list items */
.msg-conversation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}
.msg-conversation-item:last-child {
    border-bottom: none;
}
.msg-conversation-item:hover {
    background: #f0f4ff;
}
.msg-conversation-item.active {
    background: #e3f0fc;
}
.msg-conversation-item .msg-conv-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0e4ea;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}
.msg-conversation-item .msg-conv-avatar.has-unread {
    background: #0078d4;
    color: #fff;
}
.msg-conversation-item .msg-conv-info {
    flex: 1;
    min-width: 0;
}
.msg-conversation-item .msg-conv-name {
    font-size: 13.5px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-conversation-item .msg-conv-name.unread {
    font-weight: 700;
}
.msg-conversation-item .msg-conv-preview {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.msg-conversation-item .msg-conv-meta {
    text-align: right;
    flex-shrink: 0;
}
.msg-conversation-item .msg-conv-time {
    font-size: 11px;
    color: #999;
}
.msg-conversation-item .msg-conv-badge {
    background: #0078d4;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
}

/* Empty state */
.msg-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
    text-align: center;
    padding: 40px 20px;
}
.msg-empty-state .fa {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d0d5dd;
}
.msg-empty-state p {
    font-size: 15px;
    margin: 0;
}

/* Tabs */
.msg-tabs {
    display: flex;
    gap: 0;
    margin: -20px -20px 14px -20px;
    border-bottom: 2px solid #e8ecef;
}
.msg-tab {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
}
.msg-tab:hover {
    color: #0078d4;
}
.msg-tab.active {
    color: #0078d4;
    border-bottom-color: #0078d4;
}
.msg-tab .fa {
    font-size: 13px;
}

/* Rich text toolbar */
.msg-toolbar {
    display: flex;
    gap: 2px;
    padding: 0 0 6px 0;
}
.msg-toolbar-btn {
    background: #f5f7fa;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
    transition: background .15s, color .15s, border-color .15s;
    line-height: 1.4;
}
.msg-toolbar-btn:hover {
    background: #e3f0fc;
    color: #0078d4;
    border-color: #0078d4;
}
.msg-toolbar-btn.active {
    background: #0078d4;
    color: #fff;
    border-color: #0078d4;
}

/* Contenteditable editor */
.msg-editor {
    flex: 1;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    min-height: 60px;
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.45;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.msg-editor:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0,120,212,.12);
}
.msg-editor:empty::before {
    content: attr(data-placeholder);
    color: #aaa;
    pointer-events: none;
}
.msg-editor ul, .msg-editor ol {
    margin: 4px 0;
    padding-left: 20px;
}

/* Bookmark button in header */
.msg-bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.7);
    font-size: 16px;
    padding: 2px 6px;
    transition: color .2s;
    border-radius: 4px;
}
.msg-bookmark-btn:hover {
    color: #ffc107;
}
.msg-bookmark-btn.active {
    color: #ffc107;
}

/* Bookmark icon in conversation list */
.msg-conv-bookmark-icon {
    color: #ffc107;
    font-size: 11px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Conversation action buttons */
.msg-conv-actions {
    display: none;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}
.msg-conversation-item:hover .msg-conv-actions {
    display: flex;
}
.msg-conv-action-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #999;
    font-size: 13px;
    padding: 3px 6px;
    transition: color .15s, background .15s;
}
.msg-conv-action-btn:hover {
    background: #f0f0f0;
}
.msg-conv-junk:hover {
    color: #d32f2f;
}
.msg-conv-restore:hover {
    color: #388e3c;
}
.msg-conv-delete:hover {
    color: #d32f2f;
}

/* Alert */
.alert {
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 991px) {
    .msg-centre-body {
        height: 360px;
    }
    .msg-bubble {
        max-width: 85%;
    }
    .msg-centre-search input {
        width: 140px;
    }
    .msg-centre-search input:focus {
        width: 160px;
    }
}
@media (max-width: 575px) {
    .msg-centre-header {
        padding: 12px 14px;
    }
    .msg-centre-footer {
        padding: 10px 14px;
    }
    .msg-centre-body {
        padding: 12px 14px;
        height: 300px;
    }
}


/* ============================================================
   Chat Widget (Popup)
   ============================================================ */

.chat-widget-body {
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Floating toggle button */
.chat-toggle-btn {
    position: fixed;
    bottom: 5px;
    right: 5px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,120,212,.35);
    transition: transform .2s, box-shadow .2s;
    z-index: 10000;
}
.chat-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0,120,212,.45);
}

/* Chat window */
.chat-window {
    position: fixed;
    bottom: 76px;
    right: 5px;
    width: 380px;
    max-height: 560px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
    animation: chatSlideUp .25s ease-out;
}
@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: #fff;
}
.chat-window-title {
    font-weight: 600;
    font-size: 15px;
}
.chat-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color .2s, background .2s;
}
.chat-close-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.15);
}

/* Intro / login form */
.chat-intro {
    padding: 30px 24px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.chat-intro-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f0fc 0%, #cce5ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.chat-intro-icon .fa {
    font-size: 28px;
    color: #0078d4;
}
.chat-intro h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.chat-intro p {
    font-size: 13px;
    color: #888;
    margin: 0 0 20px;
}
.chat-form-group {
    margin-bottom: 12px;
    width: 100%;
}
.chat-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
    box-sizing: border-box;
}
.chat-form-group input:focus {
    border-color: #0078d4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,120,212,.12);
}
.chat-start-btn {
    width: 100%;
    padding: 11px 24px;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s;
    margin-top: 4px;
}
.chat-start-btn:hover {
    opacity: .9;
}
.chat-start-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.chat-otp-link {
    background: none;
    border: none;
    color: #0078d4;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.chat-otp-link:hover {
    color: #005a9e;
}
.chat-otp-link:disabled {
    color: #999;
    cursor: not-allowed;
}

/* Chat messages area inside widget */
.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-messages .msg-centre-body {
    height: 340px;
    padding: 14px 16px;
}

/* Chat footer */
.chat-footer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid #e8ecef;
    background: #fff;
}
.chat-footer textarea {
    flex: 1;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    resize: none;
    min-height: 38px;
    max-height: 100px;
    font-family: inherit;
    transition: border-color .2s;
}
.chat-footer textarea:focus {
    border-color: #0078d4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,120,212,.12);
}
.chat-footer .btn-send {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 8px;
}

/* Attach button */
.btn-attach {
    background: none;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    color: #555;
    font-size: 16px;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-attach:hover {
    background: #f0f4ff;
    color: #0078d4;
    border-color: #0078d4;
}

/* Attachment preview chips */
.attachment-preview {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 4px 0;
}
.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f4ff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: #333;
}
.attachment-chip .fa {
    color: #0078d4;
    font-size: 13px;
}
.attachment-chip span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attachment-chip small {
    color: #999;
    margin-left: 2px;
}
.attachment-chip-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 0 2px;
    margin-left: 2px;
}
.attachment-chip-remove:hover {
    color: #d32f2f;
}

/* In-bubble attachments */
.msg-attachments {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}
.msg-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0,120,212,.06);
    border: 1px solid rgba(0,120,212,.15);
    border-radius: 6px;
    color: #0078d4;
    text-decoration: none;
    font-size: 13px;
    transition: background .15s;
}
.msg-attachment-link:hover {
    background: rgba(0,120,212,.12);
    text-decoration: none;
}
.msg-attachment-link .fa {
    font-size: 15px;
}
.msg-attachment-link span {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.msg-attachment-link small {
    color: #888;
    font-size: 11px;
}
.msg-attachment-thumb {
    display: inline-block;
    text-decoration: none;
}
.msg-attachment-thumb img {
    max-width: 220px;
    max-height: 160px;
    border-radius: 6px;
    border: 1px solid #e0e4ea;
    display: block;
}
.msg-attachment-thumb .msg-attachment-name {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chat footer inner layout */
.chat-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.chat-footer-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.chat-footer-row textarea {
    flex: 1;
}
.chat-footer .btn-attach {
    padding: 8px 10px;
    font-size: 14px;
}

/* Responsive widget */
@media (max-width: 440px) {
    .chat-window {
        width: calc(100vw - 10px);
        right: 5px;
        bottom: 76px;
        max-height: calc(100vh - 90px);
    }
    .chat-toggle-btn {
        right: 5px;
        bottom: 5px;
    }
}


/* ============================================================
   Visitor Analytics Dashboard
   ============================================================ */

.va-date-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.va-date-btn {
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.va-date-btn:hover {
    background: #e3f0fc;
    color: #0078d4;
    border-color: #0078d4;
}
.va-date-btn.active {
    background: #0078d4;
    color: #fff;
    border-color: #0078d4;
}
.va-date-sep {
    color: #ccc;
    font-size: 14px;
}
.va-date-input {
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    color: #333;
}
.va-date-input:focus {
    border-color: #0078d4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,120,212,.12);
}

.va-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    overflow: hidden;
}
.va-card-header {
    padding: 12px 20px;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
}
.va-card-header .fa {
    margin-right: 6px;
}
.va-card-body {
    padding: 0;
}

.va-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.va-table thead th {
    background: #f5f7fa;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #e0e4ea;
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.va-table tbody td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.va-table tbody tr:hover {
    background: #f7f9fc;
}
.va-table tbody tr:last-child td {
    border-bottom: none;
}

/* Live visitors banner */
.va-live-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    padding: 14px 20px;
    color: #fff;
    flex-wrap: wrap;
    gap: 8px;
}
.va-live-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.va-live-right {
    flex-shrink: 0;
}
.va-live-dot {
    width: 10px;
    height: 10px;
    background: #34a853;
    border-radius: 50%;
    display: inline-block;
    animation: va-pulse 1.5s infinite;
}
@keyframes va-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,168,83,.6); }
    50% { opacity: .7; box-shadow: 0 0 0 6px rgba(52,168,83,0); }
}
.va-live-label {
    background: #34a853;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.va-live-count {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}
.va-live-sub {
    font-size: 13px;
    color: rgba(255,255,255,.75);
}
.va-live-sub strong {
    color: #fff;
}
.va-live-sep {
    color: rgba(255,255,255,.25);
    margin: 0 4px;
}
.va-live-chatting-badge {
    background: rgba(26,115,232,.25);
    color: #8ab4f8;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}
.va-live-chatting-badge .fa {
    margin-right: 3px;
}
.va-live-dot-sm {
    width: 6px;
    height: 6px;
    background: #34a853;
    border-radius: 50%;
    display: inline-block;
    margin-right: 2px;
}

@media (max-width: 768px) {
    .va-date-bar {
        justify-content: flex-start;
    }
}
