/* ===== VOM Frontend v4 - Full White-Label Custom Panel ===== */
:root {
    --vom-primary: #6c5ce7;
    --vom-primary-dark: #5a4bd1;
    --vom-secondary: #00cec9;
    --vom-success: #00b894;
    --vom-warning: #fdcb6e;
    --vom-danger: #e17055;
    --vom-dark: #2d3436;
    --vom-gray: #636e72;
    --vom-light: #f8f9fa;
    --vom-border: #e0e4ef;
    --vom-card-shadow: 0 2px 16px rgba(108, 92, 231, 0.07);
    --vom-radius: 14px;
    --vom-radius-sm: 8px;
    --vom-topnav-h: 62px;
    --vom-sidebar-w: 260px;
    --vom-yt: #FF0000;
    --vom-yt-dark: #cc0000;
}

/* === RESET for standalone page === */
.vom-standalone-page,
.vom-app-page {
    margin: 0;
    padding: 0;
    background: #f0f2f8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vom-standalone-page *,
.vom-app-page * {
    box-sizing: border-box;
}

.vom-app-page {
    min-height: 100vh;
}

/* Hide WordPress elements */
.vom-app-page #wpadminbar,
.vom-app-page .wp-admin-bar,
.vom-standalone-page #wpadminbar {
    display: none !important;
}

body.admin-bar .vom-topnav {
    top: 0 !important;
}

body.admin-bar.vom-app-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* === AUTH PAGE === */
.vom-auth-fullpage {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6c5ce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vom-auth-container {
    width: 100%;
    max-width: 440px;
}

.vom-auth-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.vom-auth-logo {
    text-align: center;
    margin-bottom: 16px;
}

.vom-brand-logo-img {
    max-height: 56px;
    max-width: 180px;
    object-fit: contain;
}

.vom-auth-icon {
    font-size: 52px;
}

.vom-auth-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 6px;
    color: var(--vom-dark);
}

.vom-auth-subtitle {
    color: var(--vom-gray);
    text-align: center;
    margin: 0 0 24px;
    font-size: 14px;
}

.vom-auth-tabs {
    display: flex;
    background: var(--vom-light);
    border-radius: var(--vom-radius-sm);
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}

.vom-tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--vom-gray);
    transition: all 0.2s;
}

.vom-tab-btn.active {
    background: #fff;
    color: var(--vom-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vom-tab-content {
    display: none;
}

.vom-tab-content.active {
    display: block;
}

.vom-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    border: 2px solid var(--vom-border);
    border-radius: var(--vom-radius-sm);
    background: #fff;
    color: var(--vom-dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.vom-btn-google:hover {
    border-color: #4285F4;
    background: #f0f4ff;
}

.vom-auth-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
}

.vom-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--vom-border);
}

.vom-auth-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    color: var(--vom-gray);
    font-size: 13px;
}

.vom-auth-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.vom-auth-message.vom-error {
    background: #fff5f5;
    color: var(--vom-danger);
    border: 1px solid #fecaca;
}

.vom-auth-message.vom-success {
    background: #f0fff4;
    color: var(--vom-success);
    border: 1px solid #c6f6d5;
}

/* === FORMS === */
.vom-form-group {
    margin-bottom: 16px;
}

.vom-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--vom-dark);
    margin-bottom: 6px;
}

.vom-form-group input,
.vom-form-group textarea,
.vom-select,
.vom-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--vom-border);
    border-radius: var(--vom-radius-sm);
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    color: var(--vom-dark);
    background: #fff;
}

.vom-form-group input:focus,
.vom-form-group textarea:focus,
.vom-select:focus {
    border-color: var(--vom-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.vom-hint {
    font-size: 12px;
    color: var(--vom-gray);
    margin-top: 4px;
    display: block;
}

.vom-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.vom-col-2 {
    grid-column: span 2;
}

.vom-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.vom-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--vom-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.vom-btn-primary {
    background: var(--vom-primary);
    color: #fff;
}

.vom-btn-primary:hover {
    background: var(--vom-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.35);
}

.vom-btn-secondary {
    background: var(--vom-light);
    color: var(--vom-dark);
    border: 2px solid var(--vom-border);
}

.vom-btn-secondary:hover {
    background: #e9ecef;
}

.vom-btn-block {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

.vom-btn-download {
    background: var(--vom-success);
    color: #fff;
    font-size: 12px;
    padding: 7px 12px;
}

.vom-btn-download:hover {
    background: #00a881;
}

.vom-btn-chat {
    background: transparent;
    color: var(--vom-primary);
    border: 2px solid var(--vom-primary);
    font-size: 12px;
    padding: 7px 12px;
}

.vom-btn-chat:hover {
    background: var(--vom-primary);
    color: #fff;
}

.vom-btn-chat.vom-has-unread {
    background: var(--vom-danger);
    color: #fff;
    border-color: var(--vom-danger);
    animation: vom-pulse-btn 1s infinite;
}

.vom-btn-logout {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    font-size: 13px;
    padding: 7px 14px;
}

.vom-btn-logout:hover {
    background: rgba(255, 255, 255, 0.15);
}

.vom-btn-yt {
    background: var(--vom-yt);
    color: #fff;
}

.vom-btn-yt:hover {
    background: var(--vom-yt-dark);
    transform: translateY(-1px);
}

.vom-btn-sm {
    font-size: 12px;
    padding: 6px 12px;
}

.vom-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.vom-btn-icon:hover {
    opacity: 1;
}

.vom-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

@keyframes vom-pulse-btn {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(225, 112, 85, 0.5)
    }

    50% {
        box-shadow: 0 0 0 6px rgba(225, 112, 85, 0)
    }
}

/* === TOP NAV === */
.vom-topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--vom-topnav-h);
    background: linear-gradient(90deg, #6c5ce7, #764ba2);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(108, 92, 231, 0.25);
    gap: 20px;
}

.vom-topnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.vom-nav-logo {
    max-height: 36px;
    max-width: 130px;
    object-fit: contain;
}

.vom-nav-icon {
    font-size: 26px;
}

.vom-nav-brand-name {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.vom-topnav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.vom-nav-tab {
    padding: 9px 18px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.vom-nav-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.vom-nav-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.vom-topnav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.vom-user-avatar {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.vom-user-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
}

/* === MOBILE TABS === */
.vom-mobile-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--vom-border);
    z-index: 999;
    padding: 4px 0 env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.vom-mnav-tab {
    flex: 1;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 0 4px;
    transition: all 0.2s;
    color: var(--vom-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1;
    min-width: 0;
}

.vom-mnav-tab::after {
    content: attr(data-panel);
    font-size: 9px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.vom-mnav-tab.active {
    color: var(--vom-primary);
    position: relative;
}

.vom-mnav-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--vom-primary);
    border-radius: 0 0 2px 2px;
}

/* === APP BODY === */
.vom-app-body {
    display: flex;
    padding-top: var(--vom-topnav-h);
    min-height: 100vh;
}

/* === SIDEBAR === */
.vom-sidebar {
    width: var(--vom-sidebar-w);
    background: #fff;
    border-right: 1px solid var(--vom-border);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.03);
    overflow-y: auto;
    position: sticky;
    top: var(--vom-topnav-h);
    height: calc(100vh - var(--vom-topnav-h));
}

.vom-sidebar-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--vom-border);
}

.vom-sidebar-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--vom-primary), var(--vom-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.vom-sidebar-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--vom-dark);
}

.vom-sidebar-email {
    font-size: 11px;
    color: var(--vom-gray);
    margin-top: 1px;
}

.vom-sidebar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.vom-sstat {
    background: var(--vom-light);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}

.vom-sstat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--vom-primary);
    display: block;
    line-height: 1;
}

.vom-sstat-lbl {
    font-size: 11px;
    color: var(--vom-gray);
    margin-top: 2px;
    display: block;
}

.vom-sidebar-usage {}

.vom-usage-label {
    font-size: 12px;
    color: var(--vom-gray);
    margin-bottom: 8px;
}

.vom-warn-sm {
    font-size: 12px;
    color: var(--vom-danger);
    margin: 8px 0 0;
}

.vom-warn-sm a {
    color: var(--vom-primary);
}

.vom-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vom-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vom-gray);
    font-size: 13px;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: var(--vom-radius-sm);
    transition: all 0.2s;
    margin-top: auto;
}

.vom-sidebar-logout:hover {
    background: #fff5f5;
    color: var(--vom-danger);
}

/* === MAIN === */
.vom-main {
    flex: 1;
    padding: 28px 24px;
    overflow-y: auto;
    max-width: calc(100vw - var(--vom-sidebar-w));
}

.vom-panel {
    display: none;
}

.vom-panel.active {
    display: block;
}

.vom-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.vom-panel-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--vom-dark);
}

/* === ORDER FORM === */
.vom-panel-form {
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--vom-card-shadow);
    border: 2px solid var(--vom-primary);
}

.vom-order-form .vom-form-header,
.vom-yt-form .vom-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vom-order-form .vom-form-header h3,
.vom-yt-form .vom-form-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--vom-dark);
}

.vom-close-form {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--vom-gray);
    line-height: 1;
}

/* === ORDERS GRID === */
.vom-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.vom-order-card {
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 20px;
    box-shadow: var(--vom-card-shadow);
    border: 1px solid var(--vom-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.vom-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(108, 92, 231, 0.12);
}

.vom-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vom-order-id {
    font-size: 12px;
    color: var(--vom-gray);
    font-weight: 700;
    background: var(--vom-light);
    padding: 3px 8px;
    border-radius: 6px;
}

.vom-order-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--vom-dark);
    margin: 0 0 8px;
    line-height: 1.4;
}

.vom-order-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--vom-gray);
    margin-bottom: 12px;
}

.vom-order-progress-wrap {
    margin-bottom: 12px;
}

.vom-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--vom-gray);
    margin-bottom: 6px;
}

.vom-progress-track {
    background: #e9ecef;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
}

.vom-progress-fill {
    background: linear-gradient(90deg, var(--vom-primary), var(--vom-secondary));
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
    min-width: 0;
}

.vom-progress-animated {
    animation: vom-shimmer 2s infinite linear;
    background: linear-gradient(90deg, var(--vom-primary), var(--vom-secondary), var(--vom-primary));
    background-size: 200% 100%;
}

@keyframes vom-shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

.vom-generating-msg {
    font-size: 12px;
    color: var(--vom-primary);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vom-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vom-primary);
    animation: vom-pulse-dot 1.5s infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes vom-pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7)
    }
}

.vom-order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--vom-border);
    flex-wrap: wrap;
    gap: 8px;
}

.vom-order-date {
    font-size: 11px;
    color: var(--vom-gray);
    flex-shrink: 0;
}

.vom-order-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vom-order-actions .vom-btn {
    white-space: nowrap;
    font-size: 12px;
}

/* === ORDER DELIVERABLES === */
.vom-order-deliverables {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e9e0ff;
}

.vom-dlv-new {
    animation: vom-dlv-glow 2s ease-out;
}

@keyframes vom-dlv-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 111, 247, 0.5);
        transform: scale(1.02);
    }

    40% {
        box-shadow: 0 0 12px 4px rgba(124, 111, 247, 0.25);
    }

    100% {
        box-shadow: none;
        transform: scale(1);
    }
}

/* === STATUS BADGES === */
.vom-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.vom-status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.vom-status-in-queue {
    background: #e3f2fd;
    color: #1565c0;
}

.vom-status-in-progress {
    background: #f3e5f5;
    color: #7b1fa2;
}

.vom-status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.vom-status-cancelled {
    background: #ffebee;
    color: #c62828;
}

/* === EMPTY STATE === */
.vom-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--vom-gray);
}

.vom-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.vom-empty-state h3 {
    font-size: 20px;
    color: var(--vom-dark);
    margin: 0 0 8px;
}

.vom-empty-hint {
    font-size: 13px;
    color: var(--vom-gray);
    text-align: center;
    padding: 20px;
}

/* === LIVE CHAT PANEL === */
.vom-chat-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    min-height: 500px;
    height: calc(100vh - 200px);
    max-height: calc(100vh - 160px);
}

#vom-live-chat-box {
    display: none;
    flex-direction: column;
    flex: 1;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

#vom-live-chat-box.vom-chat-active {
    display: flex !important;
}

.vom-chat-orders-sidebar {
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 16px;
    box-shadow: var(--vom-card-shadow);
    overflow-y: auto;
}

.vom-chat-orders-sidebar h4 {
    margin: 0 0 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vom-gray);
}

.vom-chat-order-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vom-chat-order-item {
    padding: 12px;
    border-radius: var(--vom-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.vom-chat-order-item:hover {
    background: var(--vom-light);
    border-color: var(--vom-border);
}

.vom-chat-order-item.active {
    background: #f0edfe;
    border-color: var(--vom-primary);
}

.vom-co-id {
    font-size: 11px;
    font-weight: 700;
    color: var(--vom-primary);
    background: #f0edfe;
    padding: 2px 7px;
    border-radius: 6px;
    flex-shrink: 0;
}

.vom-co-title {
    font-size: 13px;
    color: var(--vom-dark);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vom-unread-dot {
    width: 8px;
    height: 8px;
    background: var(--vom-danger);
    border-radius: 50%;
    flex-shrink: 0;
    animation: vom-pulse-dot 1.5s infinite;
}

.vom-chat-main {
    background: #fff;
    border-radius: var(--vom-radius);
    box-shadow: var(--vom-card-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vom-chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--vom-gray);
}

.vom-chat-placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.vom-chat-placeholder p {
    font-size: 14px;
}

.vom-chat-header-bar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--vom-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#vom-chat-order-label {
    font-weight: 700;
    color: var(--vom-dark);
}

.vom-live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vom-success);
}

.vom-live-dot {
    width: 8px;
    height: 8px;
    background: var(--vom-success);
    border-radius: 50%;
    animation: vom-pulse-dot 1.5s infinite;
}

.vom-typing-indicator {
    font-size: 12px;
    color: var(--vom-gray);
    font-style: italic;
}

.vom-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafbfe;
}

.vom-chat-empty {
    text-align: center;
    color: var(--vom-gray);
    font-size: 13px;
    padding: 20px;
}

.vom-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 72%;
}

.vom-chat-msg-user {
    align-self: flex-end;
    align-items: flex-end;
}

.vom-chat-msg-admin {
    align-self: flex-start;
    align-items: flex-start;
}

.vom-chat-msg-name {
    font-size: 11px;
    color: var(--vom-gray);
    margin-bottom: 3px;
    font-weight: 600;
}

.vom-chat-msg-text {
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.vom-chat-msg-user .vom-chat-msg-text {
    background: var(--vom-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.vom-chat-msg-admin .vom-chat-msg-text {
    background: #fff;
    color: var(--vom-dark);
    border: 1px solid var(--vom-border);
    border-bottom-left-radius: 4px;
}

.vom-chat-msg-time {
    font-size: 10px;
    color: var(--vom-gray);
    margin-top: 3px;
}

.vom-chat-input-wrap {
    padding: 12px 16px;
    border-top: 1px solid var(--vom-border);
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: #fff;
    flex-shrink: 0;
}

.vom-chat-input-wrap textarea {
    flex: 1;
    resize: none;
    padding: 10px 14px;
    border: 2px solid var(--vom-border);
    border-radius: var(--vom-radius-sm);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

.vom-chat-input-wrap textarea:focus {
    border-color: var(--vom-primary);
}

/* === LIVE CHAT - MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .vom-chat-layout {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 160px);
        height: calc(100dvh - 160px);
        min-height: 250px;
        max-height: none;
        gap: 0;
    }

    .vom-chat-orders-sidebar {
        flex-shrink: 0;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 12px;
        border-bottom: 1px solid var(--vom-border);
        border-radius: var(--vom-radius) var(--vom-radius) 0 0;
        -webkit-overflow-scrolling: touch;
    }

    .vom-chat-orders-sidebar h4 {
        margin: 0 0 6px;
        font-size: 11px;
    }

    .vom-chat-order-list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .vom-chat-order-item {
        padding: 6px 10px;
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12px;
    }

    .vom-co-title {
        max-width: 90px;
        font-size: 11px;
    }

    .vom-chat-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 0 0 var(--vom-radius) var(--vom-radius);
        overflow: hidden;
    }

    #vom-live-chat-box {
        height: 100%;
    }

    #vom-live-chat-box.vom-chat-active {
        display: flex !important;
        flex-direction: column;
        height: 100%;
    }

    .vom-chat-messages {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
    }

    .vom-chat-header-bar {
        padding: 8px 12px;
        flex-shrink: 0;
    }

    .vom-chat-input-wrap {
        padding: 8px 10px;
        gap: 6px;
        flex-shrink: 0;
        border-top: 1px solid var(--vom-border);
        background: #fff;
        z-index: 10;
    }

    .vom-chat-input-wrap textarea {
        font-size: 16px;
        padding: 8px 10px;
        min-height: 36px;
        max-height: 80px;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 18px;
    }

    #vom-chat-send {
        min-width: 40px;
        min-height: 36px;
        padding: 6px 10px;
        flex-shrink: 0;
        border-radius: 50%;
    }

    #vom-chat-attach-btn {
        min-width: 36px;
        min-height: 36px;
        padding: 6px 8px !important;
        flex-shrink: 0;
        font-size: 18px !important;
    }

    .vom-chat-msg {
        max-width: 85%;
    }

    .vom-chat-msg-text {
        padding: 8px 12px;
        font-size: 13px;
    }

    .vom-chat-placeholder {
        padding: 30px 20px;
    }

    .vom-chat-placeholder-icon {
        font-size: 36px;
    }

    .vom-chat-placeholder p {
        font-size: 13px;
        text-align: center;
    }

    .vom-chat-file-preview {
        flex-shrink: 0;
        padding: 4px 8px;
    }

    .vom-chat-file-tag {
        font-size: 10px;
        padding: 2px 6px;
        max-width: 150px;
    }
}

/* === CHAT LINKS & ATTACHMENTS === */
.vom-chat-link {
    color: #6c5ce7;
    text-decoration: underline;
    word-break: break-all;
}

.vom-chat-msg-user .vom-chat-msg-text .vom-chat-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    opacity: 0.95;
}

.vom-chat-msg-admin .vom-chat-msg-text .vom-chat-link {
    color: #6c5ce7;
}

.vom-chat-file-preview {
    padding: 6px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: var(--vom-bg);
    border-top: 1px solid var(--vom-border);
}

.vom-chat-file-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #e8f4fd;
    border-radius: 8px;
    font-size: 11px;
    color: #1565c0;
}

.vom-chat-file-tag small {
    color: #90a4ae;
}

.vom-chat-attachments {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vom-chat-att-img {
    display: block;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--vom-border);
    text-decoration: none;
    transition: transform 0.15s;
}

.vom-chat-att-img:hover {
    transform: scale(1.02);
}

.vom-chat-att-img img {
    width: 100%;
    display: block;
}

.vom-chat-att-img span {
    display: block;
    padding: 4px 8px;
    font-size: 11px;
    color: #666;
    background: #f8f9fa;
}

.vom-chat-att-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(108, 92, 231, 0.08);
    border-radius: 8px;
    font-size: 12px;
    color: #2d3436;
    text-decoration: none;
    border: 1px solid var(--vom-border);
    transition: background 0.15s;
}

.vom-chat-att-file:hover {
    background: rgba(108, 92, 231, 0.15);
}

.vom-chat-att-file small {
    color: #999;
}

/* === MODAL (quick chat) === */
.vom-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vom-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.vom-modal-box {
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 24px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.vom-chat-modal-box {
    max-width: 580px;
    display: flex;
    flex-direction: column;
}

.vom-chat-modal-box .vom-chat-messages {
    height: 340px;
}

.vom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.vom-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.vom-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--vom-gray);
    line-height: 1;
}

.vom-modal-close:hover {
    color: var(--vom-dark);
}

/* === TICKETS === */
.vom-ticket-form {
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--vom-card-shadow);
    border: 2px solid var(--vom-primary);
}

.vom-ticket-form h4 {
    margin: 0 0 16px;
    color: var(--vom-dark);
}

.vom-tickets-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vom-ticket-card {
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: var(--vom-card-shadow);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid transparent;
}

.vom-ticket-card:hover {
    border-color: var(--vom-primary);
    transform: translateY(-1px);
}

.vom-ticket-left h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--vom-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vom-ticket-meta {
    margin: 0;
    font-size: 12px;
    color: var(--vom-gray);
}

.vom-ticket-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.vom-ts-open {
    background: #fff3e0;
    color: #f57c00;
}

.vom-ts-answered {
    background: #e8f5e9;
    color: #2e7d32;
}

.vom-ts-closed {
    background: #f5f5f5;
    color: #888;
}

.vom-priority-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.vom-priority-high,
.vom-priority-urgent {
    background: #ffebee;
    color: #c62828;
}

.vom-priority-normal {
    background: #e3f2fd;
    color: #1565c0;
}

.vom-priority-low {
    background: #f1f8e9;
    color: #558b2f;
}

/* Ticket Thread */
.vom-ticket-thread-view {
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 22px;
    box-shadow: var(--vom-card-shadow);
    height: calc(100vh - 260px);
    display: flex;
    flex-direction: column;
}

.vom-thread-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--vom-border);
}

.vom-thread-title-wrap {
    flex: 1;
}

.vom-thread-title-wrap h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--vom-dark);
}

.vom-thread-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #fafbfe;
    border-radius: var(--vom-radius-sm);
    margin-bottom: 14px;
}

.vom-thread-msg {
    max-width: 75%;
    display: flex;
    flex-direction: column;
}

.vom-thread-user {
    align-self: flex-end;
    align-items: flex-end;
}

.vom-thread-admin {
    align-self: flex-start;
    align-items: flex-start;
}

.vom-thread-meta {
    font-size: 11px;
    color: var(--vom-gray);
    margin-bottom: 3px;
    font-weight: 600;
}

.vom-thread-text {
    padding: 11px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.vom-thread-user .vom-thread-text {
    background: var(--vom-primary);
    color: #fff;
    border-bottom-right-radius: 3px;
}

.vom-thread-admin .vom-thread-text {
    background: #fff;
    border: 1px solid var(--vom-border);
    color: var(--vom-dark);
    border-bottom-left-radius: 3px;
}

.vom-thread-reply-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vom-thread-reply-form textarea {
    padding: 10px 14px;
    border: 2px solid var(--vom-border);
    border-radius: var(--vom-radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
}

.vom-thread-reply-form textarea:focus {
    border-color: var(--vom-primary);
}

.vom-ticket-closed-notice {
    text-align: center;
    padding: 14px;
    background: #f5f5f5;
    border-radius: var(--vom-radius-sm);
    color: var(--vom-gray);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* === YOUTUBE STUDIO === */
.vom-yt-form-wrap {
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--vom-card-shadow);
    border: 2px solid var(--vom-yt);
}

.vom-yt-pipeline-header {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 14px 18px;
    box-shadow: var(--vom-card-shadow);
}

.vom-pipeline-stage {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vom-gray);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.vom-pipeline-stage:hover {
    background: var(--vom-light);
    color: var(--vom-dark);
}

.vom-pipeline-stage.active-stage {
    background: #fff0f0;
    color: var(--vom-yt);
    border-color: var(--vom-yt);
}

.vom-yt-projects-grid,
#vom-yt-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.vom-yt-card {
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 18px;
    box-shadow: var(--vom-card-shadow);
    border: 1px solid var(--vom-border);
    transition: all 0.2s;
}

.vom-yt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.2);
}

.vom-yt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vom-yt-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.vom-yt-st-script_writing {
    background: #fff3e0;
    color: #f57c00;
}

.vom-yt-st-storyboard {
    background: #e3f2fd;
    color: #1565c0;
}

.vom-yt-st-production {
    background: #fff0f0;
    color: var(--vom-yt);
}

.vom-yt-st-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.vom-yt-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--vom-dark);
    margin: 0 0 6px;
    line-height: 1.3;
}

.vom-yt-meta {
    font-size: 12px;
    color: var(--vom-gray);
    margin-bottom: 14px;
}

.vom-yt-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--vom-border);
}

.vom-yt-date {
    font-size: 11px;
    color: var(--vom-gray);
}

.vom-yt-actions {
    display: flex;
    gap: 6px;
}

/* Wizard */
.vom-yt-wizard {}

.vom-wizard-steps {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--vom-light);
    padding: 6px;
    border-radius: var(--vom-radius-sm);
}

.vom-wizard-step {
    flex: 1;
    text-align: center;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vom-gray);
    border-radius: 6px;
    transition: all 0.2s;
}

.vom-wizard-step.active {
    background: var(--vom-yt);
    color: #fff;
}

.vom-wizard-step.completed {
    color: var(--vom-success);
}

.vom-wizard-page {
    display: none;
}

.vom-wizard-page.active {
    display: block;
}

.vom-wizard-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.vom-script-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vom-script-hint {
    font-size: 12px;
    color: var(--vom-gray);
}

.vom-yt-form-summary {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: var(--vom-radius-sm);
    padding: 14px;
    font-size: 14px;
    color: #2e7d32;
    margin-top: 16px;
}

/* Editor */
.vom-yt-editor {
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 24px;
    box-shadow: var(--vom-card-shadow);
}

.vom-editor-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vom-border);
}

.vom-editor-header h3 {
    margin: 0;
    font-size: 18px;
}

/* === MESSAGES & TOASTS === */
.vom-message {
    padding: 14px 18px;
    border-radius: var(--vom-radius-sm);
    margin-bottom: 14px;
    font-weight: 500;
    font-size: 14px;
}

.vom-message-success {
    background: #f0fff4;
    color: var(--vom-success);
    border: 1px solid #c6f6d5;
}

.vom-message-error {
    background: #fff5f5;
    color: var(--vom-danger);
    border: 1px solid #fecaca;
}

.vom-loading {
    color: var(--vom-gray);
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.vom-toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    padding: 14px 20px;
    border-radius: var(--vom-radius-sm);
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 320px;
}

.vom-toast-show {
    opacity: 1;
    transform: translateY(0);
}

.vom-toast-success {
    background: var(--vom-success);
    color: #fff;
}

.vom-toast-error {
    background: var(--vom-danger);
    color: #fff;
}

/* === PROGRESS BAR === */
.vom-progress-track {
    background: #e9ecef;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .vom-sidebar {
        display: none;
    }

    .vom-main {
        padding: 16px;
        max-width: 100%;
    }

    .vom-mobile-tabs {
        display: flex;
    }

    .vom-topnav-menu {
        display: none;
    }

    .vom-app-body {
        padding-bottom: 64px;
    }

    .vom-main {
        max-width: 100vw;
    }

    .vom-chat-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: calc(100vh - 200px);
    }

    .vom-chat-orders-sidebar {
        height: auto;
        max-height: 180px;
    }

    .vom-chat-main {
        min-height: 400px;
        height: calc(100vh - 380px);
    }

    #vom-live-chat-box {
        height: 100%;
    }

    .vom-chat-input-wrap textarea {
        min-height: 40px;
    }

    #vom-chat-send {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 12px;
    }

    .vom-tickets-split {
        grid-template-columns: 1fr;
    }

    /* Course player responsive */
    #vom-course-player>div:last-child {
        grid-template-columns: 1fr !important;
    }

    #vom-lessons-sidebar {
        max-height: 300px !important;
    }

    /* WhatsApp float above mobile tab bar */
    .vom-whatsapp-float {
        bottom: 100px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .vom-whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 640px) {
    .vom-topnav {
        padding: 0 14px;
    }

    .vom-nav-brand-name {
        display: none;
    }

    .vom-user-name {
        display: none;
    }

    .vom-btn-logout span {
        display: none;
    }

    .vom-btn-logout {
        width: 32px;
        height: 32px;
        min-width: 32px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .vom-topnav-user {
        gap: 6px;
        flex-shrink: 0;
    }

    .vom-orders-grid {
        grid-template-columns: 1fr;
    }

    .vom-form-row {
        grid-template-columns: 1fr;
    }

    .vom-col-2 {
        grid-column: span 1;
    }

    .vom-notif-dropdown {
        position: fixed !important;
        top: 56px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: 100vw;
        max-height: 70vh;
    }
}

/* === WELCOME BANNER === */
.vom-welcome-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(124, 111, 247, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--vom-radius);
    padding: 18px 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    animation: vom-slide-down 0.5s ease;
}

@keyframes vom-slide-down {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vom-welcome-text {
    font-size: 15px;
    color: #10b981;
    font-weight: 600;
}

.vom-welcome-text span {
    color: rgba(240, 240, 255, 0.8);
    font-weight: 400;
    font-size: 13px;
    display: block;
    margin-top: 3px;
}

.vom-welcome-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: rgba(240, 240, 255, 0.4);
    line-height: 1;
}

.vom-welcome-close:hover {
    color: rgba(240, 240, 255, 0.8);
}

/* ===== BROADCAST NOTICES ===== */
#vom-broadcast-notices {
    padding: 10px 16px 0;
    max-width: 100%;
}

.vom-broadcast-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
    background: #e3f2fd;
    margin-bottom: 10px;
    position: relative;
    flex-wrap: nowrap;
}

.vom-broadcast-item .vom-bc-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.4;
}

.vom-broadcast-item .vom-bc-body {
    flex: 1;
    min-width: 0;
}

.vom-broadcast-item .vom-bc-title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 4px;
    color: #1a1a2e;
}

.vom-broadcast-item .vom-bc-msg {
    font-size: 13px;
    color: #444;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

.vom-broadcast-item .vom-bc-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.3);
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    align-self: flex-start;
}

.vom-broadcast-item .vom-bc-dismiss:hover {
    color: rgba(0, 0, 0, 0.6);
}

/* Type colors */
.vom-broadcast-item.vom-bc-info {
    border-left-color: #2196f3;
    background: #e3f2fd;
}

.vom-broadcast-item.vom-bc-success {
    border-left-color: #4caf50;
    background: #e8f5e9;
}

.vom-broadcast-item.vom-bc-warning {
    border-left-color: #ff9800;
    background: #fff3e0;
}

.vom-broadcast-item.vom-bc-error {
    border-left-color: #f44336;
    background: #ffebee;
}

@media (max-width: 600px) {
    #vom-broadcast-notices {
        padding: 8px 12px 0;
    }

    .vom-broadcast-item {
        padding: 12px 12px;
        gap: 8px;
    }

    .vom-broadcast-item .vom-bc-title {
        font-size: 13px;
    }

    .vom-broadcast-item .vom-bc-msg {
        font-size: 12px;
    }
}

/* ===== CORRECTION VIDEO BUTTON ===== */
.vom-btn-correction {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    border: none;
    font-weight: 600;
    animation: vom-correction-pulse 2s ease-in-out infinite;
}

.vom-btn-correction:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    color: #fff;
    transform: translateY(-1px);
    animation: none;
}

@keyframes vom-correction-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 152, 0, 0);
    }
}

/* ===== SUCCESS OVERLAY ===== */
@keyframes vom-success-pop {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== FILE UPLOAD ZONE ===== */
#vom-file-upload-zone:hover,
#vom-file-upload-zone.vom-drag-over {
    border-color: var(--vom-primary);
    background: #f5f3ff !important;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.vom-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: vom-wa-pulse 2s ease-in-out infinite;
    text-decoration: none;
}

.vom-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes vom-wa-pulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.1), 0 0 0 12px rgba(37, 211, 102, 0.1);
    }
}

/* ===== NOTIFICATION BELL (rewritten) ===== */
.vom-notif-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    cursor: pointer;
    z-index: 1000;
}

.vom-notif-bell-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s, transform 0.2s;
}

.vom-notif-wrap:hover .vom-notif-bell-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.vom-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
    border: 2px solid var(--vom-dark);
    z-index: 2;
}

.vom-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: -60px;
    width: 360px;
    max-height: 440px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    overflow: hidden;
    animation: vom-notif-slide 0.2s ease;
}

@keyframes vom-notif-slide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vom-notif-dropdown.vom-notif-open {
    display: block;
}

.vom-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--vom-primary), #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.vom-notif-header a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.vom-notif-header a:hover {
    color: #fff;
}

.vom-notif-list {
    max-height: 360px;
    overflow-y: auto;
}

.vom-notif-item {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    cursor: default;
    transition: background 0.15s;
}

.vom-notif-item:last-child {
    border-bottom: none;
}

.vom-notif-item:hover {
    background: #f8f9fa;
}

.vom-notif-item.vom-unread {
    background: #eff6ff;
    border-left: 3px solid var(--vom-primary);
}

.vom-notif-item .vom-notif-title {
    font-weight: 600;
    color: var(--vom-dark);
    margin-bottom: 3px;
    font-size: 13px;
}

.vom-notif-item .vom-notif-msg {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.vom-notif-item .vom-notif-time {
    color: #aaa;
    font-size: 11px;
    margin-top: 4px;
}

.vom-notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}

/* ===== BROADCAST NOTICES (premium) ===== */
#vom-broadcast-notices {
    padding: 0 0 16px;
}

.vom-broadcast-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 5px solid var(--vom-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: vom-bc-fadein 0.4s ease;
}

@keyframes vom-bc-fadein {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vom-bc-info {
    border-left-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff, #fff);
}

.vom-bc-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #fff);
}

.vom-bc-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fff);
}

.vom-bc-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fff);
}

.vom-bc-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vom-bc-info .vom-bc-icon {
    background: rgba(99, 102, 241, 0.1);
}

.vom-bc-success .vom-bc-icon {
    background: rgba(16, 185, 129, 0.1);
}

.vom-bc-warning .vom-bc-icon {
    background: rgba(245, 158, 11, 0.1);
}

.vom-bc-error .vom-bc-icon {
    background: rgba(239, 68, 68, 0.1);
}

.vom-bc-body {
    flex: 1;
    min-width: 0;
}

.vom-bc-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--vom-dark);
    margin: 0 0 4px;
    line-height: 1.3;
}

.vom-bc-msg {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
}

.vom-bc-dismiss {
    background: none;
    border: none;
    font-size: 18px;
    color: #bbb;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    flex-shrink: 0;
    border-radius: 6px;
    transition: all 0.15s;
}

.vom-bc-dismiss:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.06);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .vom-topnav-menu {
        flex-wrap: wrap;
        gap: 4px;
    }

    .vom-nav-tab {
        font-size: 12px;
        padding: 6px 10px;
    }

    .vom-topnav-user {
        gap: 4px;
    }

    .vom-user-name {
        display: none;
    }

    .vom-notif-bell-icon {
        font-size: 16px;
        width: 32px;
        height: 32px;
    }

    .vom-notif-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 70vh;
    }

    .vom-broadcast-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .vom-bc-title {
        font-size: 13px;
    }

    .vom-bc-msg {
        font-size: 12px;
    }

    .vom-bc-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .vom-whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }

    .vom-whatsapp-float svg {
        width: 22px;
        height: 22px;
    }

    #vom-course-player>div {
        grid-template-columns: 1fr !important;
    }

    #vom-lessons-sidebar {
        max-height: 250px !important;
    }
}

/* ===== NOTIFICATION BELL ===== */
.vom-notif-wrap {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background 0.2s;
    user-select: none;
}

.vom-notif-wrap:hover {
    background: rgba(255, 255, 255, 0.15);
}

.vom-notif-bell-icon {
    font-size: 20px;
    line-height: 1;
    display: block;
}

.vom-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e17055;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid rgba(108, 92, 231, 0.8);
    line-height: 1;
    pointer-events: none;
}

.vom-notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.08);
    z-index: 9999;
    overflow: hidden;
}

.vom-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #6c5ce7, #764ba2);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.vom-notif-header a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.vom-notif-header a:hover {
    color: #fff;
}

.vom-notif-list {
    max-height: 320px;
    overflow-y: auto;
}

.vom-notif-item {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}

.vom-notif-item:last-child {
    border-bottom: none;
}

.vom-notif-item:hover {
    background: #f8f6ff;
}

.vom-notif-item.vom-unread {
    background: #f3f0ff;
    border-left: 3px solid #6c5ce7;
}

.vom-notif-item.vom-unread:hover {
    background: #ede8ff;
}

.vom-notif-title {
    font-size: 13px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 2px;
}

.vom-notif-msg {
    font-size: 12px;
    color: #636e72;
    line-height: 1.4;
}

.vom-notif-time {
    font-size: 11px;
    color: #b2bec3;
    margin-top: 4px;
}

.vom-notif-empty {
    padding: 28px 18px;
    text-align: center;
    color: #b2bec3;
    font-size: 13px;
}

/* Broadcast notices inside orders panel */
#vom-broadcast-notices {
    margin-bottom: 20px;
}

@media (max-width: 500px) {
    .vom-notif-dropdown {
        width: calc(100vw - 20px);
        right: -10px;
    }
}

/* === SUBSCRIPTION CARD === */
.vom-sub-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border: 1px solid #d6d9f7;
    border-radius: var(--vom-radius);
    padding: 16px;
}

.vom-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vom-sub-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--vom-dark);
}

.vom-sub-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.vom-badge-active {
    background: #d1fae5;
    color: #065f46;
}

.vom-badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.vom-badge-expired {
    background: #fee2e2;
    color: #991b1b;
}

.vom-badge-cancelled {
    background: #e5e7eb;
    color: #374151;
}

.vom-sub-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.vom-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.vom-sub-row span {
    color: var(--vom-gray);
}

.vom-sub-row strong {
    color: var(--vom-dark);
    font-weight: 600;
}

.vom-sub-msg {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.vom-sub-msg-warn {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.vom-sub-msg-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.vom-sub-msg-error a {
    color: var(--vom-primary);
    font-weight: 600;
}

.vom-btn-danger-outline {
    background: transparent;
    color: var(--vom-danger);
    border: 1.5px solid var(--vom-danger);
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 8px 12px;
}

.vom-btn-danger-outline:hover {
    background: var(--vom-danger);
    color: #fff;
}

/* Cancel Confirmation Modal */
.vom-cancel-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.vom-cancel-modal {
    background: #fff;
    border-radius: var(--vom-radius);
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.vom-cancel-modal h3 {
    font-size: 20px;
    margin: 0 0 12px;
    color: var(--vom-dark);
}

.vom-cancel-modal p {
    color: var(--vom-gray);
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.6;
}

.vom-cancel-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.vom-btn-danger {
    background: var(--vom-danger);
    color: #fff;
    padding: 10px 24px;
}

.vom-btn-danger:hover {
    background: #c0392b;
}

/* ─── Custom Offer Cards ─── */
.vom-offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.vom-offer-card h3 {
    word-break: break-word;
}

.vom-co-accept-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32) !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.vom-co-accept-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}

.vom-co-reject-btn {
    background: transparent !important;
    border: 2px solid #e0e0e0 !important;
    color: var(--vom-gray, #666) !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.2s;
}

.vom-co-reject-btn:hover {
    border-color: #f44336 !important;
    color: #f44336 !important;
}

@media (max-width: 640px) {
    .vom-offer-card {
        padding: 14px !important;
    }
}

/* ===== CHAT FILE ATTACHMENT PREVIEW TAGS ===== */
.vom-chat-file-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #e8f4fd;
    border: 1px solid #b3d7f7;
    border-radius: 8px;
    font-size: 11px;
    color: #1565c0;
    margin: 2px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vom-chat-file-tag small {
    color: #5b9bd5;
    font-size: 10px;
    flex-shrink: 0;
}

/* ===== ORDER CHAT MODAL FILE PREVIEW ===== */
#vom-order-chat-file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 8px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}