/* =========================================================================
   GuinRank V7 — YouTube Content Refresh Advisor & Evergreen Decay Diagnostic
   File: wwwroot/style/pages/youtube/refresh-advisor.css
   Standards: Canonical YouTube Suite Architecture (_agent/YOUTUBE.md)
   Zero-Regression Engineering Standards:
     1. Strict :root theme variables (Zero hardcoded colors)
     2. Dropup Pagination Footer (.crd-menu with bottom: calc(100% + 8px) !important)
     3. In-Row Miniature ApexCharts Sparklines & Microscopic Glass Tooltip (.gr-spark-pill)
     4. Zero-Scroll Trap Modals (Root-level, dual programmatic locks on html/body)
     5. Strict Lucide icon sizing targeting both i and svg
   ========================================================================= */

#refresh-advisor-app {
    width: 100%;
    position: relative;
}

.refresh-advisor-container {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    font-family: inherit;
    transition: max-width 0.3s ease;
}

.refresh-advisor-container.is-wide-mode {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: clamp(12px, 2vw, 36px) !important;
    padding-right: clamp(12px, 2vw, 36px) !important;
}

.refresh-advisor-container.is-wide-mode .cra-data-wrapper,
.refresh-advisor-container.is-wide-mode .results-dashboard,
.refresh-advisor-container.is-wide-mode .console-features,
.refresh-advisor-container.is-wide-mode .unified-search-container,
.refresh-advisor-container.is-wide-mode .audit-hub-container,
.refresh-advisor-container.is-wide-mode .table-card,
.refresh-advisor-container.is-wide-mode .charts-split-grid,
.refresh-advisor-container.is-wide-mode .table-responsive-wrapper,
.refresh-advisor-container.is-wide-mode .car-table-quantum {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.refresh-advisor-container.is-wide-mode .col-title,
.refresh-advisor-container.is-wide-mode .quantum-video-cell {
    max-width: 480px !important;
}

.refresh-advisor-container.is-wide-mode .col-rec,
.refresh-advisor-container.is-wide-mode .action-plan-pill {
    max-width: 440px !important;
}

.refresh-advisor-container.rtl {
    direction: rtl;
    text-align: right;
}

.refresh-advisor-container.ltr {
    direction: ltr;
    text-align: left;
}

[v-cloak] {
    display: none !important;
}

/* Strict Lucide Containment Standard */
#refresh-advisor-app svg.lucide,
.refresh-advisor-container svg.lucide {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* --- Ambient Glow --- */
.hero-ambient-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 380px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 15%, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
}

/* --- Top Compliance Micro Badge --- */
.hero-compliance-row {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.yt-compliance-micro-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: var(--bg-body, rgba(0, 0, 0, 0.04));
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.yt-compliance-micro-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.yt-compliance-micro-pill i,
.yt-compliance-micro-pill svg {
    width: 13px !important;
    height: 13px !important;
    color: var(--primary-color);
}

.micro-info-icon {
    opacity: 0.6;
}

/* --- Presentation Hero (console-hero) --- */
.console-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto 32px;
    padding-top: 6px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
    border-radius: 999px;
    color: var(--primary-color);
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.hero-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-main);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.hero-title em,
.hero-title .gradient-text,
.gradient-text {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 65%, var(--blue, #25aff4)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-description {
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 24px;
}

/* Hero Features Belt (Canonical Master Suite Standard) */
.hero-features-belt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto;
}

.hfb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hfb-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    color: var(--primary-color);
}

.hfb-icon {
    width: 15px !important;
    height: 15px !important;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* =========================================================================
   3. UNIFIED SEARCH BAR (Positioned strictly between Hero & Bento)
   ========================================================================= */
.unified-search-container {
    position: relative;
    z-index: 20;
    max-width: 960px;
    margin: 0 auto 36px;
}

.unified-search-bar {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    padding: 5px 8px 5px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.unified-search-container.is-focused .unified-search-bar {
    border-color: var(--primary-color);
    box-shadow: 0 14px 38px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.rtl .unified-search-bar {
    padding: 5px 16px 5px 8px;
}

.search-segment {
    position: relative;
    display: flex;
    align-items: center;
}

.search-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 8px;
    flex-shrink: 0;
}

.dropdown-segment {
    cursor: pointer;
    user-select: none;
}

.segment-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 999px;
    transition: background 0.15s ease;
}

.segment-content:hover {
    background: var(--bg-body);
}

.channel-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.channel-meta-inline {
    display: flex;
    flex-direction: column;
    max-width: 140px;
    line-height: 1.2;
}

.segment-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-handle-sub {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chevron-icon {
    width: 13px !important;
    height: 13px !important;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.range-icon {
    width: 15px !important;
    height: 15px !important;
    color: var(--primary-color);
}

/* Glassmorphic Menus */
.segment-dropdown.glass-menu {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-start: 0;
    width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    overflow: hidden;
    animation: fadeInDown 0.2s ease;
}

.dropdown-header {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-body);
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
}

.dropdown-item.selected {
    background: color-mix(in srgb, var(--primary-color) 16%, transparent);
    color: var(--primary-color);
    font-weight: 800;
}

.check-icon {
    margin-inline-start: auto;
    color: var(--primary-color);
    width: 14px !important;
    height: 14px !important;
}

.dropdown-add-channel {
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
    padding-top: 8px;
}

.add-channel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 800;
    text-decoration: none;
    font-size: 12.5px;
}

/* Input Segment */
.input-segment {
    flex: 1;
    min-width: 160px;
    position: relative;
    padding: 0 4px;
}

.search-icon {
    width: 16px !important;
    height: 16px !important;
    color: var(--text-muted);
    margin-inline-end: 8px;
}

.unified-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    padding: 6px 0;
}

.unified-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.sync-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.sync-btn:hover {
    color: var(--primary-color);
}

.sync-btn i,
.sync-btn svg {
    width: 14px !important;
    height: 14px !important;
}

.anim-spin {
    animation: spin 1s linear infinite;
}

.input-clear-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
}

.input-clear-btn i,
.input-clear-btn svg {
    width: 13px !important;
    height: 13px !important;
}

/* Action Segment */
.action-segment {
    gap: 10px;
}

.count-credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--warning, #f59e0b) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--warning, #f59e0b) 30%, transparent);
    font-size: 11.5px;
    font-weight: 800;
    color: var(--warning, #f59e0b);
}

.cc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warning, #f59e0b);
}

.cc-icon {
    width: 11px !important;
    height: 11px !important;
}

.round-search-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color) 40%, transparent);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.round-search-btn:hover:not(:disabled) {
    transform: scale(1.06);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 50%, transparent);
}

.round-search-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.arrow-icon {
    width: 16px !important;
    height: 16px !important;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* --- Fetching Progress Overlay --- */
.car-fetching-overlay {
    max-width: 680px;
    margin: 0 auto 30px;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.car-fetching-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.car-progress-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-body);
    border-radius: 999px;
    overflow: hidden;
}

.car-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--blue, #25aff4));
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* =========================================================================
   5. STANDARD 6 BENTO FEATURES CLUSTERS (Hidden when hasData)
   ========================================================================= */
.console-features {
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 10px;
    margin-bottom: 30px;
}

.bento-features-cluster {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
    grid-auto-flow: dense !important;
}

.bento-card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 200px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.bento-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.bc-wide-top { grid-column: span 2 !important; }
.bc-tall { grid-row: span 2 !important; min-height: 420px !important; }
.bc-wide-mid { grid-column: span 2 !important; }

@media (max-width: 900px) {
    .bento-features-cluster { grid-template-columns: repeat(2, 1fr) !important; }
    .bc-wide-top, .bc-wide-mid { grid-column: span 2 !important; }
    .bc-tall { grid-row: span 1 !important; grid-column: span 1 !important; min-height: 200px !important; }
}

@media (max-width: 600px) {
    .bento-features-cluster { grid-template-columns: 1fr !important; }
    .bc-wide-top, .bc-wide-mid, .bc-tall { grid-column: span 1 !important; }
}

.bento-decor-icon {
    position: absolute;
    top: 16px;
    inset-inline-end: 18px;
    opacity: 0.10;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.bento-card:hover .bento-decor-icon {
    opacity: 0.30;
    transform: scale(1.15);
}

.bento-decor-icon i,
.bento-decor-icon svg {
    width: 64px !important;
    height: 64px !important;
    color: var(--primary-color);
}

.bento-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

.dashed-ring-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    width: 44px;
    height: 44px;
}

.dashed-ring-wrapper::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    opacity: 0.5;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    transform-origin: center center;
}

.bento-card:hover .dashed-ring-wrapper::before {
    opacity: 1;
    transform: scale(1.1) rotate(180deg);
    border-color: var(--primary-color);
}

.bc-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.bento-card:hover .bc-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 60%, transparent));
    color: #fff;
    border-color: transparent;
    transform: scale(1.08) rotate(4deg);
}

.bc-icon-wrapper i,
.bc-icon-wrapper svg {
    width: 20px !important;
    height: 20px !important;
}

.bc-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.35;
}

.bc-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Animations */
.anim-float { animation: bentoFloat 3s ease-in-out infinite; }
.anim-pulse { animation: bentoPulse 2.4s ease-in-out infinite; }
.anim-spin { animation: bentoSpin 8s linear infinite; }
.anim-tilt { animation: bentoTilt 4s ease-in-out infinite; }
.anim-bounce { animation: bentoBounce 2s ease-in-out infinite; }
.anim-glow { animation: bentoGlow 2.5s ease-in-out infinite; }

@keyframes bentoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes bentoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes bentoSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes bentoTilt { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(8deg); } }
@keyframes bentoBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes bentoGlow { 0%, 100% { filter: drop-shadow(0 0 2px color-mix(in srgb, var(--primary-color) 20%, transparent)); } 50% { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--primary-color) 60%, transparent)); } }

/* =========================================================================
   6. ACTIVE DATA RESULTS WRAPPER
   ========================================================================= */
.cra-data-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Channel Header Banner */
.cra-channel-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.channel-info-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.channel-banner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.channel-banner-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.channel-name-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-banner-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-main);
    margin: 0;
}

.audit-success-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--success, #10b981) 12%, transparent);
    color: var(--success, #10b981);
    font-size: 11px;
    font-weight: 800;
}

.channel-sub-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.channel-handle-tag {
    color: var(--primary-color);
    font-weight: 700;
}

.dot-separator {
    opacity: 0.4;
}

.freshness-banner-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border-radius: 16px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
}

.freshness-score-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
}

.freshness-score-circle.status-fresh {
    background: color-mix(in srgb, var(--success, #10b981) 15%, transparent);
    color: var(--success, #10b981);
    border: 1px solid color-mix(in srgb, var(--success, #10b981) 35%, transparent);
}

.freshness-score-circle.status-moderate {
    background: color-mix(in srgb, var(--warning, #f59e0b) 15%, transparent);
    color: var(--warning, #f59e0b);
    border: 1px solid color-mix(in srgb, var(--warning, #f59e0b) 35%, transparent);
}

.freshness-score-circle.status-decaying {
    background: color-mix(in srgb, var(--danger, #ef4444) 15%, transparent);
    color: var(--danger, #ef4444);
    border: 1px solid color-mix(in srgb, var(--danger, #ef4444) 35%, transparent);
}

.score-number { font-size: 17px; }
.score-max { font-size: 10px; opacity: 0.7; }

.freshness-info {
    display: flex;
    flex-direction: column;
}

.freshness-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.freshness-status-text {
    font-size: 13px;
    font-weight: 800;
}

.freshness-status-text.status-fresh { color: var(--success, #10b981); }
.freshness-status-text.status-moderate { color: var(--warning, #f59e0b); }
.freshness-status-text.status-decaying { color: var(--danger, #ef4444); }

/* Executive KPIs Grid */
.cra-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kpi-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.kpi-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.icon-urgent { background: color-mix(in srgb, var(--danger, #ef4444) 12%, transparent); color: var(--danger, #ef4444); }
.icon-calendar { background: color-mix(in srgb, var(--primary-color) 12%, transparent); color: var(--primary-color); }
.icon-golden { background: color-mix(in srgb, var(--warning, #f59e0b) 12%, transparent); color: var(--warning, #f59e0b); }
.icon-lift { background: color-mix(in srgb, var(--success, #10b981) 12%, transparent); color: var(--success, #10b981); }

.kpi-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.tag-urgent { background: color-mix(in srgb, var(--danger, #ef4444) 15%, transparent); color: var(--danger, #ef4444); }
.tag-calendar { background: color-mix(in srgb, var(--primary-color) 15%, transparent); color: var(--primary-color); }
.tag-golden { background: color-mix(in srgb, var(--warning, #f59e0b) 15%, transparent); color: var(--warning, #f59e0b); }
.tag-lift { background: color-mix(in srgb, var(--success, #10b981) 15%, transparent); color: var(--success, #10b981); }

.kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}

.kpi-main-number {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    color: var(--text-main);
}

.kpi-sub-unit {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.kpi-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin: 4px 0 0;
}

.kpi-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ApexCharts Section */
.cra-charts-section {
    position: relative;
}

.chart-card-full {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

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

.chart-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chart-main-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 2px;
}

.chart-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.chart-legend-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.legend-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.decay-badge { background: color-mix(in srgb, var(--danger, #ef4444) 10%, transparent); color: var(--danger, #ef4444); }
.recovery-badge { background: color-mix(in srgb, var(--success, #10b981) 10%, transparent); color: var(--success, #10b981); }

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-red { background: var(--danger, #ef4444); }
.dot-green { background: var(--success, #10b981); }

.chart-render-stage {
    min-height: 300px;
    margin-bottom: 16px;
}

.chart-insight-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-main);
}

.insight-icon {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* =========================================================================
   7. STUDIO COMMAND BAR & AUDIT HUB
   ========================================================================= */
.cra-table-section {
    position: relative;
}

.table-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* Hub Header */
.audit-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

.car-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
}

.hub-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--success, #10b981) 12%, transparent);
    color: var(--success, #10b981);
    font-size: 11.5px;
    font-weight: 800;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success, #10b981);
    box-shadow: 0 0 8px var(--success, #10b981);
}

.hub-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

.audit-coverage-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}

.acc-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.acc-numbers strong {
    color: var(--primary-color);
}

.acc-bar-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--bg-body);
    overflow: hidden;
}

.acc-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* Studio Command Toolbar */
.audit-hub-toolbar {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
}

.hub-filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hub-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hub-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--primary-color);
}

.hub-tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.hub-tab-btn.active i,
.hub-tab-btn.active svg {
    color: #ffffff;
}

.capsule-count {
    opacity: 0.85;
    font-size: 11px;
}

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

.hub-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hub-search-icon {
    position: absolute;
    inset-inline-start: 10px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.hub-search-input {
    padding: 7px 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 13px;
    width: 200px;
    transition: all 0.2s ease;
}

.hub-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 240px;
}

.hub-search-clear {
    position: absolute;
    inset-inline-end: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

/* Luxury Custom Sort Selector */
.hub-sort-wrapper {
    position: relative;
}

.hub-sort-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hub-sort-trigger:hover,
.hub-sort-wrapper.is-open .hub-sort-trigger {
    border-color: var(--primary-color);
}

.hub-sort-chevron {
    color: var(--text-muted);
}

.hub-sort-dropdown.glass-menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    width: 240px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    z-index: 50;
    overflow: hidden;
    animation: fadeInDown 0.15s ease;
}

.hub-sort-dropdown-title {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-body);
}

.hub-sort-options-list {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.hub-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease;
}

.hso-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-sort-option:hover,
.hub-sort-option.is-selected {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
}

.hso-check {
    color: var(--primary-color);
}

/* Dual View Mode Switcher */
.hub-view-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2px;
}

.hub-view-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hub-view-btn:hover { color: var(--text-main); }

.hub-view-btn.active {
    background: var(--primary-color);
    color: #ffffff;
}

.hub-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hub-export-btn:hover {
    color: var(--text-main);
    border-color: var(--primary-color);
}

/* =========================================================================
   8. QUANTUM TABLE VIEW (.car-table-quantum)
   ========================================================================= */
.table-scroll-container {
    overflow-x: auto;
    width: 100%;
}

.car-table-quantum {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: start;
}

.car-table-quantum thead th {
    background: var(--bg-body);
    padding: 14px 16px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

/* Interactive Sortable Headers */
.sortable-th {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.sortable-th:hover {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 6%, transparent);
}

.th-sort-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.th-sort-icon {
    font-size: 13px;
    opacity: 0.7;
}

.audit-table-row {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.audit-table-row:hover {
    background: color-mix(in srgb, var(--primary-color) 3%, transparent);
}

.car-table-quantum td {
    padding: 14px 16px;
    vertical-align: middle;
}

/* Serial # Column */
.col-num {
    width: 48px;
    text-align: center;
}

.vid-index-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-muted);
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
}

/* Video Cell (.vid-cell) */
.col-title {
    min-width: 280px;
    max-width: 340px;
}

.vid-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vid-thumb-container {
    position: relative;
    width: 86px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000000;
    border: 1px solid var(--border-color);
}

.vid-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-year-badge {
    position: absolute;
    bottom: 3px;
    inset-inline-start: 3px;
    background: rgba(239, 68, 68, 0.88);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.vid-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.vid-thumb-container:hover .vid-play-overlay {
    opacity: 1;
}

.vid-play-overlay i,
.vid-play-overlay svg {
    width: 18px !important;
    height: 18px !important;
}

.vid-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.vid-title {
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-main);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.vid-title:hover {
    color: var(--primary-color);
}

.vid-meta-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vid-meta-chips i,
.vid-meta-chips svg {
    width: 12px !important;
    height: 12px !important;
}

.micro-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.tag-warning {
    background: color-mix(in srgb, var(--warning, #f59e0b) 12%, transparent);
    color: var(--warning, #f59e0b);
}

.tag-danger {
    background: color-mix(in srgb, var(--danger, #ef4444) 12%, transparent);
    color: var(--danger, #ef4444);
}

.vid-views-chip {
    font-size: 10.5px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* In-Row Sparkline Column */
.col-curve {
    width: 140px;
    min-width: 130px;
}

.sparkline-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spark-ret-el {
    width: 100%;
    height: 32px;
}

.spark-avg-badge {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

.spark-avg-badge strong {
    color: var(--text-main);
}

/* Microscopic Quantum Tooltip (.gr-spark-pill) */
.gr-spark-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 8px !important;
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    pointer-events: none !important;
    z-index: 1000000 !important;
}

/* Views & Velocity Column */
.col-views {
    white-space: nowrap;
}

.views-age-box {
    display: flex;
    flex-direction: column;
}

.views-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    font-family: monospace;
}

.velocity-text {
    font-size: 11px;
    color: var(--text-muted);
}

/* Decay Column */
.col-decay {
    width: 120px;
}

.decay-meter-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.decay-pct-val {
    font-size: 12.5px;
    font-weight: 800;
    font-family: monospace;
}

.decay-critical { color: var(--danger, #ef4444); }
.decay-moderate { color: var(--warning, #f59e0b); }
.decay-mild { color: var(--success, #10b981); }

.decay-bar-track {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: var(--bg-body);
    overflow: hidden;
}

.decay-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.decay-bar-fill.decay-critical { background: var(--danger, #ef4444); }
.decay-bar-fill.decay-moderate { background: var(--warning, #f59e0b); }
.decay-bar-fill.decay-mild { background: var(--success, #10b981); }

/* Priority Column */
.col-priority {
    white-space: nowrap;
}

.badge-priority {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.priority-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.priority-urgent {
    background: color-mix(in srgb, var(--danger, #ef4444) 14%, transparent);
    color: var(--danger, #ef4444);
}
.priority-urgent .priority-dot { background: var(--danger, #ef4444); }

.priority-moderate {
    background: color-mix(in srgb, var(--warning, #f59e0b) 14%, transparent);
    color: var(--warning, #f59e0b);
}
.priority-moderate .priority-dot { background: var(--warning, #f59e0b); }

.priority-stable {
    background: color-mix(in srgb, var(--success, #10b981) 14%, transparent);
    color: var(--success, #10b981);
}
.priority-stable .priority-dot { background: var(--success, #10b981); }

/* Potential Lift Column */
.col-lift {
    white-space: nowrap;
}

.badge-lift {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 800;
    color: var(--success, #10b981);
    background: color-mix(in srgb, var(--success, #10b981) 12%, transparent);
    padding: 3px 8px;
    border-radius: 6px;
}

.badge-lift i,
.badge-lift svg {
    width: 12px !important;
    height: 12px !important;
}

/* Canonical Table Recommendation Box (.table-rec-box) */
.col-rec {
    min-width: 260px;
    max-width: 320px;
}

.table-rec-box {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.table-rec-box:hover {
    border-color: color-mix(in srgb, var(--primary-color) 45%, transparent);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.trb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.trb-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.trb-time i,
.trb-time svg {
    width: 12px !important;
    height: 12px !important;
}

.trb-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.trb-copy-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    transform: translateY(-1px);
}

.trb-copy-btn.is-copied {
    color: var(--success, #10b981);
    border-color: var(--success, #10b981);
    background: color-mix(in srgb, var(--success, #10b981) 12%, transparent);
}

.trb-copy-btn i,
.trb-copy-btn svg {
    width: 12px !important;
    height: 12px !important;
}

.trb-title {
    font-weight: 800;
    font-size: 12px;
    color: var(--text-main);
    margin-bottom: 3px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trb-body {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Actions Column */
.col-actions {
    text-align: center;
    width: 80px;
}

.row-actions-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.row-act-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.row-act-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.row-act-btn i,
.row-act-btn svg {
    width: 14px !important;
    height: 14px !important;
}

/* =========================================================================
   9. STUDIO CARDS GRID VIEW (.hub-cards-grid)
   ========================================================================= */
.hub-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
}

.hub-video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.hub-video-card:hover {
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.hvc-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000000;
}

.hvc-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vid-index-badge-card {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
}

.hvc-priority-badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
}

.hvc-play-btn {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.hvc-thumb-wrap:hover .hvc-play-btn {
    opacity: 1;
}

.hvc-play-btn i,
.hvc-play-btn svg {
    width: 28px !important;
    height: 28px !important;
}

.hvc-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.hvc-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hvc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--bg-body);
}

.hvc-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hvc-stat-lbl {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.hvc-stat-val {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-main);
    font-family: monospace;
}

.card-sparkline-box {
    width: 100%;
    height: 36px;
}

.hvc-rec-box {
    margin-top: auto;
}

.btn-card-inspect-full {
    width: 100%;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-card-inspect-full:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-card-inspect-full i,
.btn-card-inspect-full svg {
    width: 14px !important;
    height: 14px !important;
}

/* =========================================================================
   10. CANONICAL TABLE PAGINATION FOOTER & .crd-menu DROPUP STANDARD
   ========================================================================= */
.table-pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.tpf-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tpf-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 6px 14px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 999px;
}

.tpf-info-pill strong {
    color: var(--primary-color);
    font-weight: 800;
    font-family: monospace;
    font-size: 12.5px;
}

.rows-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rows-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--text-muted);
}

.custom-rows-dropdown {
    position: relative;
    display: inline-block;
}

.crd-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crd-trigger:hover,
.crd-trigger.is-open {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.crd-val {
    font-family: monospace;
    font-weight: 800;
    font-size: 12.5px;
}

.crd-chevron {
    color: var(--text-muted);
}

.crd-chevron i,
.crd-chevron svg {
    width: 13px !important;
    height: 13px !important;
}

.crd-trigger.is-open .crd-chevron {
    transform: rotate(180deg);
}

/* Strict 100% :root Dropup Menu Standard */
.custom-rows-dropdown .crd-menu,
.crd-menu.glass-menu,
.crd-menu {
    position: absolute !important;
    bottom: calc(100% + 8px) !important;
    top: auto !important;
    inset-inline-start: 0 !important;
    min-width: 80px !important;
    max-width: 100px !important;
    background: var(--card-bg) !important;
    background-color: var(--card-bg) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 10px !important;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.15)), 0 0 0 1px color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
    z-index: 100000 !important;
    padding: 4px !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

.crd-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.crd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-main) !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.crd-item:hover {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent) !important;
    color: var(--primary-color) !important;
}

.crd-item.selected {
    background: color-mix(in srgb, var(--primary-color) 18%, transparent) !important;
    color: var(--primary-color) !important;
    font-weight: 800;
}

.crd-check {
    color: var(--primary-color) !important;
    display: inline-flex;
    align-items: center;
}

.crd-check i,
.crd-check svg {
    width: 12px !important;
    height: 12px !important;
}

.tpf-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.page-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg-body) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 35%, transparent) !important;
    transform: translateY(-1.5px);
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--bg-body) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

.page-btn i,
.page-btn svg {
    width: 14px !important;
    height: 14px !important;
}

.page-current-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-body) !important;
    color: var(--text-muted) !important;
    font-size: 12px;
    font-weight: 700;
}

.page-num-val {
    color: var(--text-main);
    font-family: monospace;
}

/* =========================================================================
   11. SUBTLE YOUTUBE COMPLIANCE DISCLAIMER (Section III.E & III.E.2)
   ========================================================================= */
.yt-disclaimer-subtle {
    text-align: center;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text-muted);
    padding: 16px 20px 0;
}

.yt-disclaimer-subtle p {
    margin: 0 0 6px;
}

.yt-disclaimer-subtle-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
}

.yt-disclaimer-subtle-links a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.yt-disclaimer-subtle-links a:hover {
    color: var(--primary-color);
}

.yt-disclaimer-subtle-links i,
.yt-disclaimer-subtle-links svg {
    width: 11px !important;
    height: 11px !important;
}

/* =========================================================================
   12. ROOT-LEVEL ZERO-SCROLL TRAP MODALS (Zero-Regression Engineering)
   ========================================================================= */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

.custom-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    padding: 20px !important;
    margin: 0 !important;
}

.custom-modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 760px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    animation: zoomInModal 0.2s ease;
}

.custom-modal-card-sm {
    max-width: 580px;
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.btn-close-modal {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-close-modal i,
.btn-close-modal svg {
    width: 16px !important;
    height: 16px !important;
}

/* The Sole Scrollable Container */
.custom-modal-body {
    padding: 24px;
    overflow-y: auto !important;
    max-height: calc(85vh - 135px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-video-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
}

.modal-video-thumb {
    width: 120px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.modal-video-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-current-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
}

.modal-stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mstat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.mstat-item i,
.mstat-item svg {
    width: 12px !important;
    height: 12px !important;
    color: var(--primary-color);
}

/* 2026 Suggested Title Modernization Card */
.modal-modern-title-card {
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
    border-radius: 16px;
    padding: 16px 20px;
}

.modern-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.modern-card-header .card-icon {
    color: var(--primary-color);
}

.modern-card-header .card-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-color);
}

.badge-target-year {
    margin-inline-start: auto;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--primary-color);
    color: #ffffff;
}

.modern-title-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.modern-title-text {
    font-size: 15px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.4;
}

.btn-copy-modal-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-copy-modal-title:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.btn-copy-modal-title i,
.btn-copy-modal-title svg {
    width: 13px !important;
    height: 13px !important;
}

/* Why Refresh Now Box */
.modal-why-box {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px;
}

.why-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.why-icon {
    color: var(--warning, #f59e0b);
}

.why-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
}

.why-body {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* 4-Pillars Modernization Checklist */
.modal-checklist-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.checklist-section-title i,
.checklist-section-title svg {
    color: var(--primary-color);
    width: 16px !important;
    height: 16px !important;
}

.checklist-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checklist-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
}

.check-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 15%, transparent);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.45;
}

/* Revival Timeline */
.revival-timeline-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px;
}

.revival-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 14px;
}

.revival-title i,
.revival-title svg {
    color: var(--primary-color);
    width: 15px !important;
    height: 15px !important;
}

.timeline-phases {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-inline-start: 16px;
}

.timeline-phases::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    inset-inline-start: 4px;
    width: 2px;
    background: var(--border-color);
}

.phase-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phase-dot {
    position: absolute;
    inset-inline-start: -16px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--card-bg);
}

.phase-info h6 {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.phase-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

/* Modal Footer */
.custom-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.btn-copy-full-plan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-full-plan:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-copy-full-plan i,
.btn-copy-full-plan svg {
    width: 14px !important;
    height: 14px !important;
}

.btn-open-studio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-open-studio:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-open-studio i,
.btn-open-studio svg {
    width: 14px !important;
    height: 14px !important;
}

.btn-close-modal-main {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal-main:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

/* Legal Modal */
.legal-modal-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legal-paragraph-box {
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.legal-paragraph-box p {
    margin: 0;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .cra-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-features-cluster {
        grid-template-columns: 1fr;
    }
    .bc-wide-top, .bc-tall, .bc-wide-mid {
        grid-column: span 1;
        grid-row: span 1;
    }
    .checklist-items-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .unified-search-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 12px;
        gap: 8px;
    }
    .search-divider {
        display: none;
    }
    .search-segment {
        width: 100%;
    }
    .input-segment {
        width: 100%;
    }
    .action-segment {
        justify-content: space-between;
    }
    .cra-kpi-grid {
        grid-template-columns: 1fr;
    }
    .audit-hub-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .hub-filter-tabs {
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .hub-toolbar-actions {
        justify-content: space-between;
    }
    .table-pagination-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .tpf-controls {
        justify-content: center;
    }
}

/* =========================================================================
   NEXT-GEN LOAD MORE CONTAINER STANDARD (Section 1.9 & 1.10)
   ========================================================================= */
.table-load-more-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0 12px;
    width: 100%;
}

.load-more-quantum-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-load-more-uploads {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.btn-load-more-uploads:hover:not(:disabled) {
    background: color-mix(in srgb, var(--primary-color) 8%, var(--card-bg));
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.btn-load-more-uploads:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-load-more-uploads svg.lucide,
.btn-load-more-uploads i {
    width: 16px !important;
    height: 16px !important;
}

.load-more-badge {
    padding: 3px 9px;
    background: var(--primary-light, color-mix(in srgb, var(--primary-color) 12%, transparent));
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
}

/* =========================================================================
   QUANTUM GLASS TOOLTIPS & SPARKLINES (100% :root Variable Compliance)
   ========================================================================= */
.cra-tooltip-quantum {
    padding: 10px 14px;
    background: var(--card-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color) !important;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    color: var(--text-main) !important;
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.25));
}

.gr-spark-pill {
    padding: 4px 10px;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 8px;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0,0,0,0.15));
}
