/* ============================================================================
   AI Affiliate Autopilot - Minimalist & High-Density SaaS Theme
   Style: Minimalist, Sleek Dark Mode (Vercel / Linear inspired)
   Optimized for Maximum Data Density and Table Screen Real Estate
   ============================================================================ */

:root {
    /* Color Palette */
    --bg-base: #090D16;
    --bg-surface: #0F172A;
    --bg-surface-elevated: #151F32;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(26, 38, 59, 0.85);
    --bg-subtle: rgba(255, 255, 255, 0.03);
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.18);
    --border-focus: rgba(99, 102, 241, 0.5);

    /* Accents */
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --primary-glow: rgba(99, 102, 241, 0.22);
    
    --accent-orange: #F97316;
    --accent-orange-hover: #EA580C;
    --accent-orange-glow: rgba(249, 115, 22, 0.25);
    
    --accent-emerald: #10B981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.2);
    --accent-amber: #F59E0B;
    --accent-rose: #F43F5E;
    --accent-cyan: #06B6D4;
    --accent-purple: #8B5CF6;

    /* Text Hierarchy */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-dark: #0F172A;

    /* Typography */
    --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Spacing & Radii */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    /* Elevation */
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.5);
    --shadow-pop: 0 16px 36px -6px rgba(0, 0, 0, 0.7);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Universal Form Controls Dark Theme */
input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    color: var(--text-primary);
}

input[type="text"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="email"],
textarea {
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

select {
    background-color: #0d1527;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
}

select option {
    background-color: #0f172a;
    color: #f8fafc;
}

input[type="checkbox"] {
    accent-color: #2563EB;
    cursor: pointer;
}

/* ============================================================================
   APP LAYOUT & SLIM SIDEBAR
   ============================================================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 236px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 18px 12px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 8px 18px 8px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 0 14px var(--primary-glow);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text h2 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}

.brand-text .gradient-text {
    background: linear-gradient(135deg, #818CF8, #C084FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tag {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 1px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 10px 4px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
    color: #fff;
    background: #2563EB;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.nav-item.active.active-orange {
    color: #fff;
    background: rgba(249, 115, 22, 0.16);
    border-left: 3px solid var(--accent-orange);
    padding-left: 9px;
}

.nav-item i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    color: inherit;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background-color: rgba(249, 115, 22, 0.2);
    color: #FB923C;
    border: 1px solid rgba(249, 115, 22, 0.3);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
}

/* Sidebar Footer Live Status */
.system-status-box {
    margin-top: auto;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    position: relative;
    flex-shrink: 0;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 50%;
    border: 1px solid var(--accent-emerald);
    animation: statusPulse 2s infinite ease-out;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.status-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.status-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.status-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ============================================================================
   MAIN CONTENT AREA & LOW-PROFILE TOPBAR
   ============================================================================ */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
    flex-wrap: wrap;
}

.page-title-area h1 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    line-height: 1.25;
}

.page-title-area .subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}

.topbar-icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.topbar-icon-btn .badge-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-rose);
}

.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-hover);
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    color: #fff;
    font-weight: 700;
    font-size: 0.74rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-profile-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.user-profile-role {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ============================================================================
   BUTTON SYSTEM
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
    line-height: 1;
}

.btn i {
    font-size: 0.82rem;
}

.btn-primary {
    background: #2563EB;
    color: #fff;
    border-color: #1D4ED8;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: #1D4ED8;
    border-color: #1E40AF;
}

.btn-orange {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #fff;
    border-color: #EA580C;
    box-shadow: 0 2px 8px var(--accent-orange-glow);
}

.btn-orange:hover {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
    box-shadow: 0 4px 12px var(--accent-orange-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--border-hover);
}

.btn-success {
    background: #059669;
    color: #fff;
    border-color: #047857;
}

.btn-success:hover {
    background: #047857;
}

.btn-danger {
    background: rgba(244, 63, 94, 0.15);
    color: #FB7185;
    border-color: rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
    background: rgba(244, 63, 94, 0.25);
    color: #fff;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.76rem;
}

.btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* ============================================================================
   HIGH-DENSITY COMPACT KPI STAT CARDS
   ============================================================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.kpi-icon.blue { background: rgba(37, 99, 235, 0.15); color: #60A5FA; }
.kpi-icon.purple { background: rgba(139, 92, 246, 0.15); color: #A78BFA; }
.kpi-icon.indigo { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.kpi-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34D399; }

.kpi-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.kpi-label {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.2;
}

.kpi-value {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 2px 0 3px 0;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.kpi-trend {
    font-size: 0.68rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-trend.positive { color: var(--accent-emerald); }
.kpi-trend.warning { color: var(--accent-amber); }

/* ============================================================================
   CARD CONTAINERS & SUB-TOOLBARS
   ============================================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 20px;
}

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

.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* Sub Navigation Segmented Tabs (Linear/Apple style) */
.sub-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.segmented-control {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 3px;
}

.segmented-tab {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.segmented-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.segmented-tab.active {
    background: #2563EB;
    color: #fff;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
}

/* High-Density Integrated Filter Bar */
.filter-toolbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.search-input-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    min-width: 280px;
    flex: 1;
    max-width: 420px;
    transition: var(--transition);
}

.search-input-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.search-input-box i {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.search-input-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.82rem;
    width: 100%;
}

.search-input-box input::placeholder {
    color: var(--text-muted);
}

.filter-select {
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 28px 6px 10px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    transition: var(--transition);
}

.filter-select:hover {
    border-color: var(--border-hover);
}

.filter-select:focus {
    border-color: var(--primary);
}

/* ============================================================================
   MAXIMUM DENSITY DATA TABLE
   ============================================================================ */
.table-responsive {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.4);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.data-table th {
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 5;
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.data-table tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.035);
}

.data-table input[type="checkbox"] {
    accent-color: #2563EB;
    width: 15px;
    height: 15px;
    cursor: pointer;
    border-radius: 3px;
}

/* Product Row Specific Styling */
.prod-cell-main {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-width: 260px;
}

.prod-thumb {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: #090D16;
    flex-shrink: 0;
}

.prod-title-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.prod-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #F8FAFC;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.prod-cell-main:hover .prod-name {
    color: #93C5FD;
}

.prod-sub-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.platform-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.platform-tag.shopee {
    background: rgba(238, 77, 45, 0.15);
    color: #FB923C;
    border: 1px solid rgba(238, 77, 45, 0.3);
}

.platform-tag.lazada {
    background: rgba(15, 118, 110, 0.15);
    color: #2DD4BF;
    border: 1px solid rgba(15, 118, 110, 0.3);
}

.platform-tag.tiktok {
    background: rgba(254, 44, 85, 0.15);
    color: #FDA4AF;
    border: 1px solid rgba(254, 44, 85, 0.3);
}

.score-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 90px;
}

.score-number {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

.score-number.amber {
    color: var(--accent-amber);
}

.score-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--accent-emerald);
}

.score-bar-fill.amber {
    background: var(--accent-amber);
}

.media-post-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 8px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-xs);
    color: #C7D2FE;
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition);
}

.media-post-pill:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: var(--primary);
    color: #fff;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}

.badge-subtle {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(244, 63, 94, 0.12);
    color: #FB7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Pagination Bar */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-btn {
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    border-color: var(--border-hover);
}

.page-btn.active {
    background: #2563EB;
    border-color: #1D4ED8;
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ============================================================================
   PIPELINE 6-STEP ORCHESTRATION STYLES
   ============================================================================ */
.stepper-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    user-select: none;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
    margin-bottom: 6px;
}

.step-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
}

.step-node:hover .step-circle {
    transform: scale(1.06);
    border-color: var(--primary);
    color: #fff;
}

.step-node.active .step-circle {
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    border-color: #818CF8;
    color: #fff;
    box-shadow: 0 0 16px var(--primary-glow);
}

.step-node.active .step-label {
    color: #fff;
    font-weight: 700;
}

.step-node.completed .step-circle {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.step-node.completed .step-label {
    color: var(--accent-emerald);
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 8px 20px 8px;
    position: relative;
    transition: var(--transition);
}

.step-line.active {
    background: linear-gradient(90deg, var(--primary), var(--accent-emerald));
}

.pipeline-step-box {
    animation: fadeIn 0.25s ease-out;
}

/* Quick sample links pill */
.btn-sample {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sample:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================================================
   CONTENT STUDIO & MEDIA VAULT
   ============================================================================ */
.studio-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.studio-toolbar h2 {
    color: #fff;
}

.studio-layout {
    display: grid;
    gap: 20px;
    align-items: start;
}

.studio-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
}

.studio-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.studio-filter-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.studio-filter-pill:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
    color: #fff;
}

.studio-filter-pill.active {
    background: #2563EB;
    border-color: #1D4ED8;
    color: #fff;
}

/* Phone Mockup 9:16 Previewer */
.phone-frame {
    width: 290px;
    height: 540px;
    background: #000;
    border: 8px solid #1E293B;
    border-radius: 36px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-camera-notch {
    width: 90px;
    height: 14px;
    background: #1E293B;
    border-radius: 0 0 10px 10px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    flex: 1;
    background: linear-gradient(180deg, #0F172A 0%, #1E1B4B 100%);
    position: relative;
    overflow: hidden;
}

.video-overlay {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 14px 14px;
}

/* ============================================================================
   MODALS & TOASTS
   ============================================================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1;
    cursor: pointer;
}

.modal-dialog {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 94%;
    max-width: 600px;
    max-height: 90vh;
    padding: 24px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-pop);
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.modal-body {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    box-sizing: border-box;
    flex-shrink: 0;
}

/* ============================================================================
   UNIVERSAL MODAL FORM GROUPS & CONTROLS
   ============================================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 2px;
    line-height: 1.4;
    user-select: none;
}

.form-group label strong {
    color: #f8fafc;
}

.form-group input[type="text"],
.form-group input[type="search"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: block;
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 0.84rem;
    color: #f8fafc;
    outline: none;
    transition: var(--transition);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 34px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.form-group select option {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 8px 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
    background: rgba(15, 23, 42, 0.98);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

/* Form Check / Checkbox rows in modals */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.form-check input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.form-check label {
    cursor: pointer;
    line-height: 1.45;
}

/* File Drop Area for CSV Modal */
.file-drop-area {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 28px 16px;
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    transition: var(--transition);
    margin: 14px 0;
}

.file-drop-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.file-drop-area i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.file-drop-area p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.file-name-display {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Alert Boxes */
.alert-info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #cbd5e1;
    font-size: 0.78rem;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.alert-info i {
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
}

.toast {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-pop);
    animation: toastSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-left: 3px solid var(--accent-emerald); }
.toast.error { border-left: 3px solid var(--accent-rose); }
.toast.info { border-left: 3px solid var(--primary); }

@keyframes toastSlide {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Helper Utilities */
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.25s ease-out; }

/* ============================================================================
   PRODUCT DETAIL DEEP DIVE MODAL ENHANCEMENTS
   ============================================================================ */
.modal-nav-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    background: rgba(15, 23, 42, 0.6);
    flex-shrink: 0;
    overflow-x: auto;
}

.modal-nav-tab {
    padding: 11px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

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

.modal-nav-tab.active {
    color: #60A5FA;
    border-bottom-color: #3B82F6;
    background: rgba(59, 130, 246, 0.08);
}

.modal-nav-tab .tab-count-badge {
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.modal-nav-tab.active .tab-count-badge {
    background: #2563EB;
    color: #fff;
}

.modal-tab-pane {
    display: none;
}

.modal-tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

/* Video Grid Cards */
.system-video-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.system-video-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.system-video-player-wrap {
    width: 100%;
    background: #000;
    position: relative;
    aspect-ratio: 9/16;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.system-video-player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Post Cards */
.social-post-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.social-post-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Analytics Stat Cards */
.mpd-stat-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.mpd-stat-box .stat-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mpd-stat-box .stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.mpd-stat-box .stat-sub {
    font-size: 0.72rem;
    margin-top: 4px;
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================================
   CONTENT STUDIO REDESIGN: DARK THEME & INFINITE SCROLL
   ============================================================================ */

/* Sidebar Sub-Menu */
.nav-item-group {
    display: flex;
    flex-direction: column;
}

.nav-chevron-btn {
    margin-left: auto;
    padding: 3px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
}

.nav-chevron-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-item-group .nav-chevron {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.nav-item-group.open .nav-chevron {
    transform: rotate(180deg);
}

.nav-sub-items {
    display: none;
    flex-direction: column;
    padding-left: 28px;
    gap: 2px;
    margin-top: 2px;
    margin-bottom: 6px;
}

.nav-item-group.open .nav-sub-items {
    display: flex;
}

.nav-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.nav-sub-item i {
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
    color: var(--text-muted);
}

.nav-sub-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.nav-sub-item.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
    font-weight: 600;
}

.nav-sub-item.active i {
    color: var(--primary);
}

/* Studio Header */
.studio-dark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.studio-dark-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.studio-dark-subtitle {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin: 0;
}

.studio-dark-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.studio-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.studio-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.studio-btn-group {
    display: inline-flex;
    position: relative;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.studio-btn-primary {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #fff;
    padding: 9px 16px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.studio-btn-primary:hover {
    background: #1d4ed8;
}

.studio-btn-split {
    padding: 9px 11px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.studio-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    padding: 6px;
    display: none;
    flex-direction: column;
    min-width: 220px;
    z-index: 100;
}

.studio-dropdown-menu.show {
    display: flex;
    animation: fadeIn 0.18s ease;
}

.studio-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.studio-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* Horizontal Sub-Navigation Tabs */
.studio-subnav-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    overflow-x: auto;
}

.studio-subnav-btn {
    background: transparent;
    border: none;
    padding: 10px 0 14px 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.studio-subnav-btn i {
    font-size: 0.95rem;
}

.studio-subnav-btn:hover {
    color: #e2e8f0;
}

.studio-subnav-btn.active {
    color: #3b82f6;
}

.studio-subnav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: #3b82f6;
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

/* Studio Workspace Grid (2 Columns: Left Filter, Right Content) */
.studio-workspace-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 1100px) {
    .studio-workspace-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Filter Sidebar */
.studio-left-filter-col {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

.studio-filter-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.studio-filter-heading {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.studio-filter-search {
    position: relative;
}

.studio-filter-search i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.studio-filter-search input {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm);
    padding: 8px 12px 8px 32px;
    font-size: 0.8rem;
    color: #fff;
    outline: none;
    transition: var(--transition);
}

.studio-filter-search input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.studio-filter-checklist {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.studio-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.studio-filter-row:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.studio-filter-row.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-weight: 600;
}

.studio-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-filter-label input[type="checkbox"] {
    accent-color: #3b82f6;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.studio-filter-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 7px;
    border-radius: 999px;
}

.studio-filter-row.active .studio-filter-count {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

/* Storage Widget */
.studio-storage-widget {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.studio-storage-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-storage-icon {
    color: #3b82f6;
    font-size: 0.85rem;
}

.studio-storage-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
}

.studio-storage-text {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.studio-storage-used {
    font-weight: 700;
    color: #60a5fa;
}

.studio-storage-sep {
    margin: 0 3px;
    color: var(--text-muted);
}

.studio-storage-total {
    color: var(--text-secondary);
}

.studio-storage-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.studio-storage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 999px;
}

.studio-btn-upgrade {
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xs);
    padding: 6px 12px;
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.studio-btn-upgrade:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Right Main Content */
.studio-main-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* 4 Metric KPI Cards */
.studio-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .studio-metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.studio-metric-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.studio-metric-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.studio-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.studio-metric-icon.icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.studio-metric-icon.icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.studio-metric-icon.icon-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.studio-metric-icon.icon-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.studio-metric-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.studio-metric-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
}

.studio-metric-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 2px 0 3px 0;
}

.studio-metric-trend {
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.studio-metric-trend.trend-up {
    color: #34d399;
}

.trend-sub {
    color: var(--text-muted);
    font-weight: 400;
}

/* Studio Action Toolbar */
.studio-toolbar-row {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.studio-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.studio-view-toggle {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.studio-view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.88rem;
    transition: var(--transition);
}

.studio-view-btn:hover {
    color: #fff;
}

.studio-view-btn.active {
    background: #2563eb;
    color: #fff;
}

.studio-select-wrapper select {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 7px 28px 7px 10px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    transition: var(--transition);
}

.studio-select-wrapper select:focus {
    border-color: #3b82f6;
}

.studio-btn-filter-adv {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
}

.studio-btn-filter-adv:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Video Grid Container */
.studio-video-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1400px) {
    .studio-video-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .studio-video-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .studio-video-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Video Card (Dark Theme) */
.studio-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.studio-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.studio-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b0f19;
    overflow: hidden;
}

.studio-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.studio-card:hover .studio-card-img {
    transform: scale(1.05);
}

.studio-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.studio-card-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.studio-card:hover .studio-card-play-overlay {
    opacity: 1;
}

.studio-card-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.6);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.studio-card:hover .studio-card-play-btn {
    transform: scale(1);
}

.studio-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.studio-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.studio-status-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.studio-status-pill.status-published {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.studio-status-pill.status-draft {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.studio-status-pill.status-scheduled {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.studio-status-pill.status-edited {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.studio-dots-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.studio-dots-btn:hover {
    color: #fff;
}

.studio-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em;
}

.studio-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.studio-card-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.studio-card-cat i {
    font-size: 0.72rem;
    color: var(--primary);
}

.studio-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.studio-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.studio-card-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.studio-card-stat i {
    font-size: 0.75rem;
}

/* List Mode View */
.studio-video-grid-container.list-mode {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.studio-video-grid-container.list-mode .studio-card {
    flex-direction: row;
    height: 110px;
    align-items: center;
}

.studio-video-grid-container.list-mode .studio-card-thumb-wrap {
    width: 170px;
    height: 100%;
    aspect-ratio: auto;
    flex-shrink: 0;
}

.studio-video-grid-container.list-mode .studio-card-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.studio-video-grid-container.list-mode .studio-card-title {
    -webkit-line-clamp: 1;
    height: auto;
    flex: 1;
}

.studio-video-grid-container.list-mode .studio-card-footer {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    gap: 16px;
}

/* Infinite Scroll Sentinel */
.studio-infinite-sentinel {
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.studio-infinite-loader {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.studio-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: studioSpin 0.8s linear infinite;
}

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

.studio-infinite-end {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 999px;
}

.studio-infinite-end i {
    color: var(--accent-emerald);
}

/* ============================================================================
   EXECUTIVE OVERVIEW DASHBOARD STYLES (Matching Mockup)
   ============================================================================ */

/* Page Banner */
.ov-banner {
    margin-bottom: 22px;
}

.ov-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 5px;
}

.ov-subtitle {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

/* 5 Top KPI Cards Grid */
.ov-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.ov-kpi-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.ov-kpi-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(0,0,0,0.4);
}

.ov-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
}

.ov-kpi-icon.purple { background: linear-gradient(135deg, #7c3aed, #6366f1); box-shadow: 0 0 16px rgba(124, 58, 237, 0.35); }
.ov-kpi-icon.emerald { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 0 16px rgba(16, 185, 129, 0.35); }
.ov-kpi-icon.pink { background: linear-gradient(135deg, #db2777, #f43f5e); box-shadow: 0 0 16px rgba(244, 63, 94, 0.35); }
.ov-kpi-icon.orange { background: linear-gradient(135deg, #ea580c, #f97316); box-shadow: 0 0 16px rgba(249, 115, 22, 0.35); }
.ov-kpi-icon.blue { background: linear-gradient(135deg, #2563eb, #38bdf8); box-shadow: 0 0 16px rgba(37, 99, 235, 0.35); }

.ov-kpi-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ov-kpi-label {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.ov-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ov-kpi-trend {
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}

.ov-kpi-trend.positive { color: #34d399; }
.ov-kpi-subtext { color: var(--text-muted); font-weight: 400; font-size: 0.68rem; margin-left: 2px; }

/* Grid Split & Three-Columns */
.ov-grid-split {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.ov-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* Base Overview Card */
.ov-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: var(--transition);
}

.ov-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

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

.ov-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ov-card-link {
    font-size: 0.74rem;
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.ov-card-link:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* Segmented Filter Pills in Chart Card */
.ov-segmented-pill {
    display: flex;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.ov-pill-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.ov-pill-btn:hover {
    color: #fff;
}

.ov-pill-btn.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

/* Chart Card Body */
.ov-chart-body {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 20px;
    align-items: center;
}

.ov-chart-main {
    display: flex;
    flex-direction: column;
}

.ov-chart-canvas-wrap {
    width: 100%;
    height: 190px;
    position: relative;
}

.ov-svg-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ov-axis-text {
    fill: #64748b;
    font-size: 10px;
    font-family: var(--font-sans);
}

.ov-chart-x-labels {
    display: flex;
    justify-content: space-between;
    padding: 4px 10px 0 45px;
    font-size: 0.72rem;
    color: #64748b;
}

.ov-chart-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.ov-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ov-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.ov-dot.blue { background-color: #3b82f6; }
.ov-dot.pink { background-color: #f43f5e; }
.ov-dot.purple { background-color: #8b5cf6; }

/* Gauge Panel */
.ov-gauge-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
}

.ov-gauge-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 10px;
    text-align: center;
}

.ov-donut-wrap {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 12px;
}

.ov-donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ov-donut-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 10;
}

.ov-donut-meter {
    fill: none;
    stroke: #06b6d4;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.ov-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ov-donut-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.ov-gauge-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 0.72rem;
}

.ov-gstat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.ov-gstat-row strong {
    color: #fff;
    font-size: 0.78rem;
}

.ov-status-pills {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ov-pill-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.72rem;
    font-weight: 500;
}

.ov-pill-badge.success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.ov-pill-badge.info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.ov-pill-badge.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* Category Performance List */
.ov-cat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ov-cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ov-cat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    color: #fff;
    flex-shrink: 0;
}

.ov-cat-icon.purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.ov-cat-icon.orange { background: rgba(249, 115, 22, 0.2); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.ov-cat-icon.amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.ov-cat-icon.pink { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.ov-cat-icon.rose { background: rgba(244, 63, 94, 0.2); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }

.ov-cat-info {
    flex: 1;
    min-width: 0;
}

.ov-cat-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.78rem;
}

.ov-cat-name-box strong {
    color: #fff;
    font-size: 0.78rem;
    margin-right: 6px;
}

.ov-cat-count {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.ov-cat-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ov-cat-stat strong {
    color: #fff;
    font-size: 0.8rem;
}

.ov-growth.positive {
    color: #34d399;
    font-weight: 600;
    font-size: 0.72rem;
}

.ov-cat-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.ov-cat-bar-fill.cyan {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #10b981);
    border-radius: 99px;
}

/* Workflow Cards List (Row 3, Card 1) */
.ov-wf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ov-wf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-subtle);
}

.ov-wf-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.ov-wf-detail {
    flex: 1;
    min-width: 0;
}

.ov-wf-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.ov-wf-topline strong {
    font-size: 0.78rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ov-wf-subline {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.ov-wf-prog-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ov-wf-prog-bar {
    flex: 1;
    height: 4px;
    background: #3b82f6;
    border-radius: 99px;
}

.ov-wf-prog-bar.done {
    background: #10b981;
}

.ov-wf-prog-val {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Top Videos List (Row 3, Card 2) */
.ov-rank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ov-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.ov-rank-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.ov-rank-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.ov-rank-badge.gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ov-rank-badge.silver { background: linear-gradient(135deg, #94a3b8, #64748b); }
.ov-rank-badge.bronze { background: linear-gradient(135deg, #b45309, #78350f); }
.ov-rank-badge.norm { background: rgba(15, 23, 42, 0.9); border: 1px solid var(--border-color); color: var(--text-secondary); }

.ov-rank-info {
    flex: 1;
    min-width: 0;
}

.ov-rank-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.ov-rank-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.ov-rank-stats span i {
    font-size: 0.65rem;
    margin-right: 2px;
}

/* Distribution Channels (Row 3, Card 3) */
.ov-channel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ov-channel-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ov-ch-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.ov-ch-icon.orange { background: #ea580c; }
.ov-ch-icon.dark { background: #000; border: 1px solid rgba(255,255,255,0.15); }
.ov-ch-icon.red { background: #ef4444; }
.ov-ch-icon.blue { background: #1877f2; }
.ov-ch-icon.cyan { background: #0891b2; }
.ov-ch-icon.muted { background: rgba(255,255,255,0.08); color: var(--text-secondary); }

.ov-ch-content {
    flex: 1;
    min-width: 0;
}

.ov-ch-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    margin-bottom: 4px;
}

.ov-ch-topline strong {
    color: #fff;
}

.ov-ch-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ov-ch-pct {
    color: var(--text-secondary);
    font-weight: 600;
}

.ov-ch-views {
    color: #fff;
    font-weight: 600;
}

.ov-ch-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.ov-ch-bar-fill.blue {
    height: 100%;
    background: #3b82f6;
    border-radius: 99px;
}

/* Pending Approvals (Row 4, Card 1) */
.ov-approval-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ov-appr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.ov-appr-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.ov-appr-info {
    flex: 1;
    min-width: 0;
}

.ov-appr-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.ov-appr-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
}

.ov-appr-cat {
    color: var(--text-secondary);
}

.ov-badge-sm {
    padding: 1px 6px;
    font-size: 0.62rem;
    border-radius: 4px;
}

.ov-appr-date {
    color: var(--text-muted);
}

.ov-btn-action {
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Alerts & Opportunities (Row 4, Card 2) */
.ov-alert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ov-alert-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-subtle);
}

.ov-alert-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.ov-alert-icon.rose { background: rgba(244, 63, 94, 0.2); color: #f43f5e; }
.ov-alert-icon.amber { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.ov-alert-icon.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.ov-alert-icon.purple { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }

.ov-alert-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ov-alert-text strong {
    font-size: 0.76rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 2px;
}

.ov-alert-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Monthly Goals (Row 4, Card 3) */
.ov-goals-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ov-goal-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ov-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.ov-goal-name {
    color: var(--text-secondary);
}

.ov-goal-val strong {
    color: #fff;
}

.ov-goal-max {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.ov-goal-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.ov-goal-bar-fill.cyan {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #10b981);
    border-radius: 99px;
}

/* Topbar Enhancements */
.topbar-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 7px 16px;
    width: 360px;
    max-width: 100%;
    transition: var(--transition);
}

.topbar-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
    background: rgba(15, 23, 42, 0.98);
}

.topbar-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.8rem;
    width: 100%;
}

.topbar-search-box input::placeholder {
    color: #64748b;
}

.topbar-search-box i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.topbar-date-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.76rem;
    font-weight: 500;
    color: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-date-pill:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
}

.topbar-date-pill i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.topbar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f43f5e;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: 2px;
}

.topbar-action-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-new-video {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border-color: #4f46e5 !important;
    color: #fff !important;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.35);
}

.btn-new-video:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.55);
}

/* Responsive adjustments */
@media (max-width: 1360px) {
    .ov-kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .ov-grid-split { grid-template-columns: 1fr; }
    .ov-grid-three { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .ov-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .ov-chart-body { grid-template-columns: 1fr; }
}

/* ============================================================================
   AUTH GUARD SCREEN & RBAC STYLES (Glassmorphism & Sleek Dark Mode)
   ============================================================================ */

.auth-guard-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at 50% 15%, rgba(49, 46, 129, 0.45) 0%, rgba(15, 23, 42, 0.98) 55%, #070a13 100%);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.auth-guard-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), 0 0 50px rgba(99, 102, 241, 0.18);
    overflow: hidden;
    position: relative;
    animation: authCardPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCardPop {
    0% { transform: scale(0.94) translateY(16px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #f97316, #10b981, #6366f1);
    background-size: 300% 100%;
    animation: authGlowSweep 6s linear infinite;
}

@keyframes authGlowSweep {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.auth-header {
    padding: 32px 32px 20px 32px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.auth-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    margin: 0;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 6px;
    line-height: 1.45;
}

.auth-body {
    padding: 24px 32px 32px 32px;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 7px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s;
}

.auth-input {
    width: 100%;
    padding: 11px 42px 11px 40px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.95);
}

.auth-input:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
    color: #a5b4fc;
}

.auth-toggle-pwd {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.auth-toggle-pwd:hover {
    color: #e2e8f0;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 0.8rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input {
    cursor: pointer;
    accent-color: #6366f1;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    line-height: 1.4;
    display: none;
    align-items: center;
    gap: 10px;
}

.auth-alert-error {
    display: flex;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

/* Quick Login Demo Accounts */
.auth-quick-accounts {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-quick-title {
    font-size: 0.73rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.auth-quick-btn {
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.auth-quick-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.auth-quick-btn.admin:hover {
    border-color: rgba(234, 179, 8, 0.5);
    background: rgba(234, 179, 8, 0.15);
}

.auth-quick-btn.editor:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.15);
}

.auth-quick-btn.viewer:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.15);
}

.auth-quick-icon {
    font-size: 1.1rem;
}

.auth-quick-role {
    font-weight: 700;
    font-size: 0.75rem;
}

.auth-quick-cred {
    font-size: 0.65rem;
    color: #64748b;
}

/* User Profile on Topbar */
.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.user-profile-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-profile-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
}

.user-profile-role-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 1px;
}

.role-badge-admin {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.role-badge-editor {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.role-badge-viewer {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.topbar-logout-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.topbar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

/* Role Restriction Banner */
.role-banner-viewer {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.15), rgba(245, 158, 11, 0.1));
    border-bottom: 1px solid rgba(234, 179, 8, 0.3);
    color: #fde047;
    padding: 8px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* Disabled UI elements for restricted roles */
.rbac-disabled {
    opacity: 0.45 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.rbac-hidden {
    display: none !important;
}

