/* =========================================================================
   GuinRank V7 — YouTube Audience Engagement & Community Diagnostic
   Architecture: tools_architecture.md & YouTube Developer Policies
   100% Theme Variables, Zero Hardcoded Hex, Full Dynamic Reactivity
   ========================================================================= */

#engagement-diagnostic-app {
    position: relative;
    width: 100%;
    min-height: 100%;
    font-family: inherit;
    color: var(--text-main);
}

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

/* --- Loading States --- */
.tool-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    width: 100%;
}
.tool-content-state {
    width: 100%;
}
.tool-content-state.none {
    display: none;
}
.tool-content-state.show {
    display: block;
}

/* --- Container --- */
.page-container.analyzer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    position: relative;
    z-index: 1;
}

/* --- Console Hero --- */
.console-hero {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 28px;
    padding-top: 8px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    border-radius: 999px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color) 10%, transparent);
}
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}
.hero-badge-icon {
    width: 15px;
    height: 15px;
}

.hero-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 70%, #25aff4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 auto 24px;
    max-width: 740px;
}

.hero-features-belt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.hfb-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 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);
}
.hfb-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

/* --- Compliance Micro-Badge --- */
.yt-compliance-micro-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-body);
    border: 1px dashed color-mix(in srgb, var(--primary-color) 35%, var(--border-color));
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}
.yt-compliance-micro-pill:hover {
    border-color: var(--primary-color);
    color: var(--text-main);
    background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-body));
}
.shield-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}
.info-icon {
    width: 13px;
    height: 13px;
    opacity: 0.7;
}

/* --- Unified Search Container --- */
.unified-search-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--primary-color) 8%, transparent);
    position: relative;
    z-index: 20;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.unified-search-container.is-focused {
    border-color: color-mix(in srgb, var(--primary-color) 50%, var(--border-color));
    box-shadow: 0 12px 34px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.unified-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 52px;
}

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

.dropdown-segment {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: background 0.2s ease;
    user-select: none;
}
.dropdown-segment:hover {
    background: var(--bg-body);
}

.channel-segment {
    min-width: 190px;
    max-width: 260px;
}
.range-segment {
    min-width: 160px;
}

.segment-content {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.channel-avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}
.segment-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

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

.input-segment {
    flex: 1;
    min-width: 240px;
    gap: 8px;
    padding: 0 8px;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.unified-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
}
.unified-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}
.input-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}
.input-clear-btn:hover {
    color: var(--text-main);
}
.input-clear-btn i {
    width: 15px;
    height: 15px;
}

.action-segment {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}

.count-credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
}
.cc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}
.cc-icon {
    width: 13px;
    height: 13px;
    color: var(--success);
}

.round-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 85%, #000));
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color) 35%, transparent);
    flex-shrink: 0;
}
.round-search-btn:hover:not(:disabled) {
    transform: scale(1.06);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-color) 50%, transparent);
}
.round-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.arrow-icon {
    width: 18px;
    height: 18px;
}
[dir="rtl"] .arrow-icon {
    transform: rotate(180deg);
}
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: edeSpin 0.8s linear infinite;
}

/* --- Glass Dropdowns --- */
.segment-dropdown.glass-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    padding: 6px;
    z-index: 100;
}
[dir="rtl"] .segment-dropdown.glass-menu {
    left: auto;
    right: 0;
}
.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 260px;
    overflow-y: auto;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease;
}
.dropdown-item:hover {
    background: var(--bg-body);
}
.dropdown-item.selected {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
}
.check-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
    margin-inline-start: auto;
}

/* --- Bento Features Cluster --- */
.console-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}
@media (max-width: 992px) {
    .console-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .console-features { grid-template-columns: 1fr; }
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bento-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 12%, transparent);
}
.bento-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-body));
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    color: var(--primary-color);
    flex-shrink: 0;
}
.bento-icon-wrapper i { width: 22px; height: 22px; }
.bento-card-title { font-size: 15px; font-weight: 800; color: var(--text-main); margin: 0; }
.bento-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Bento Animations */
.anim-float { animation: edeFloat 3s ease-in-out infinite; }
.anim-pulse { animation: edePulse 2.4s ease-in-out infinite; }
.anim-spin { animation: edeSpin 8s linear infinite; }
.anim-tilt { animation: edeTilt 4s ease-in-out infinite; }
.anim-bounce { animation: edeBounce 2s ease-in-out infinite; }
.anim-glow { animation: edeGlow 2.5s ease-in-out infinite; }

@keyframes edeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes edePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes edeSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes edeTilt { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(8deg); } }
@keyframes edeBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes edeGlow { 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)); } }

/* --- Fetching Overlay --- */
.ede-fetching-overlay {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}
.ede-fetching-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--primary-color);
}
.ede-progress-bg {
    width: 100%;
    height: 8px;
    background: color-mix(in srgb, var(--primary-color) 15%, transparent);
    border-radius: 10px;
    overflow: hidden;
}
.ede-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 70%, #25aff4));
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* --- Results Dashboard --- */
.results-dashboard {
    position: relative;
    z-index: 10;
}

/* Master KPI Cards */
.ede-master-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
@media (max-width: 992px) {
    .ede-master-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ede-master-grid { grid-template-columns: 1fr; }
}

.ede-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.ede-card-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ede-card-title i {
    width: 18px;
    height: 18px;
}
.ede-metric-val {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
    font-family: monospace;
    line-height: 1;
    margin-bottom: 8px;
}
.ede-metric-sub {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}
.sub-good { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.sub-warn { background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--warning); }
.sub-danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }

.ede-metric-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 10px;
}

/* Radar & Breakdown Grid */
.ede-charts-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 992px) {
    .ede-charts-grid { grid-template-columns: 1fr; }
}

.ede-credits-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Strategy Boxes */
.strat-box {
    padding: 14px;
    background: var(--bg-body);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.strat-box-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 7px;
}
.strat-icon {
    width: 15px;
    height: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}
.strat-box-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Table Card */
.ede-table-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.table-responsive {
    overflow-x: auto;
}

.ede-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}
[dir="ltr"] .ede-table { text-align: left; }

.ede-table th {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}
.ede-table td {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.ede-table tr:hover td { background: var(--bg-body); }

.vid-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
}
.vid-thumb {
    width: 64px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--border-color);
    flex-shrink: 0;
}
.vid-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.vid-info {
    overflow: hidden;
}
.vid-title {
    font-weight: 800;
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vid-title:hover {
    color: var(--primary-color);
}

.mono-stat {
    font-family: monospace;
    font-weight: 800;
    font-size: 13px;
}
.c-success {
    color: var(--success);
}

.tag-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.tag-success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.tag-info { background: color-mix(in srgb, var(--primary-color) 12%, transparent); color: var(--primary-color); }
.tag-warning { background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--warning); }
.tag-danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }

.ai-boost-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ai-boost-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-body));
}
.ai-btn-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

/* --- Compliance Card --- */
.yt-compliance-box {
    margin-top: 32px;
    padding: 22px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    text-align: right;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-muted);
}
[dir="ltr"] .yt-compliance-box { text-align: left; }
.yt-compliance-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}
.yt-compliance-header i { width: 17px; height: 17px; color: var(--primary-color); }
.yt-compliance-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
}
.yt-comp-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}
.yt-comp-link:hover { text-decoration: underline; }
.yt-comp-link i { width: 13px; height: 13px; }

/* --- Modals --- */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.custom-modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
}
.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-title-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}
.modal-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}
.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}
.modal-close-btn:hover { color: var(--text-main); }
.modal-close-btn i { width: 18px; height: 18px; }

.modal-body {
    padding: 20px 22px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-muted);
}
.modal-links-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.modal-link-item {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}
.modal-link-item:hover { text-decoration: underline; }

.prompt-copy-box {
    margin-top: 8px;
}
.prompt-textarea {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-main);
    resize: none;
    outline: none;
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--border-color);
}
.modal-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.modal-btn-secondary {
    padding: 9px 16px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO-BY-VIDEO QUANTUM AUDIT HUB & TABLE STANDARD (TOOL 04)
   ═══════════════════════════════════════════════════════════════ */

/* Wide Screen Expansion */
.engagement-diagnostic-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;
    transition: max-width 0.3s ease;
}

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

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

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

.audit-hub-container {
    margin-top: 24px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 1. Audit Hub Header & Coverage */
.audit-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.hub-header-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hub-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    margin-inline-start: 8px;
}
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 35%, transparent);
    animation: pulseDotAnim 1.8s infinite;
}
@keyframes pulseDotAnim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}
.hub-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}

.audit-coverage-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
}
.acc-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
}
.acc-label {
    color: var(--text-muted);
    font-weight: 600;
}
.acc-numbers {
    color: var(--text-main);
    font-weight: 800;
    font-family: monospace;
}
.acc-pct {
    color: var(--primary-color);
    margin-inline-start: 4px;
}
.acc-bar-track {
    width: 100%;
    height: 5px;
    background: color-mix(in srgb, var(--border-color) 60%, transparent);
    border-radius: 999px;
    overflow: hidden;
}
.acc-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* 2. Studio Command Toolbar */
.audit-hub-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Micro-Search inside Table */
.hub-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 260px;
    flex: 1;
    max-width: 360px;
}
.hub-search-icon {
    position: absolute;
    inset-inline-start: 11px;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
}
.hub-search-input {
    width: 100%;
    height: 36px;
    padding-inline-start: 34px;
    padding-inline-end: 32px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}
.hub-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 12%, transparent);
}
.hub-search-clear {
    position: absolute;
    inset-inline-end: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
}
.hub-search-clear:hover { color: var(--text-main); }
.hub-search-clear i { width: 13px; height: 13px; }

/* Filter Tabs / Pills */
.hub-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.hub-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.hub-tab-btn i { width: 13px; height: 13px; }
.hub-tab-btn:hover {
    color: var(--text-main);
    border-color: color-mix(in srgb, var(--primary-color) 40%, var(--border-color));
}
.hub-tab-btn.active {
    background: color-mix(in srgb, var(--primary-color) 12%, var(--card-bg, #ffffff));
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--primary-color) 12%, transparent);
}
.hub-tab-btn.is-viral.active {
    background: color-mix(in srgb, #f59e0b 14%, var(--card-bg, #ffffff));
    border-color: #f59e0b;
    color: #f59e0b;
}
.hub-tab-btn.is-revival.active {
    background: color-mix(in srgb, #f43f5e 14%, var(--card-bg, #ffffff));
    border-color: #f43f5e;
    color: #f43f5e;
}

/* Toolbar Actions */
.hub-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Sort Dropdown */
.hub-sort-wrapper {
    position: relative;
    display: inline-block;
}
.hub-sort-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.hub-sort-trigger:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.hub-sort-wrapper.is-open .hub-sort-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent);
}
.hub-sort-icon-box {
    display: inline-flex;
    align-items: center;
}
.hub-sort-icon {
    width: 13px !important;
    height: 13px !important;
    color: var(--primary-color);
}
.hub-sort-current-text {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hub-sort-chevron {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.hub-sort-chevron i { width: 12px; height: 12px; }
.hub-sort-wrapper.is-open .hub-sort-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}
.hub-sort-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 240px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(16px);
    z-index: 120;
    padding: 6px;
}
.hub-sort-dropdown-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 8px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}
.hub-sort-dropdown-title i { width: 11px; height: 11px; }
.hub-sort-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
    overflow-y: auto;
}
.hub-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.15s ease;
    user-select: none;
}
.hub-sort-option .hso-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.hub-sort-option .hso-icon {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
}
.hub-sort-option .hso-icon i { width: 13px; height: 13px; }
.hub-sort-option:hover {
    background: color-mix(in srgb, var(--primary-color) 8%, var(--card-bg, #ffffff));
    color: var(--primary-color);
}
.hub-sort-option:hover .hso-icon { color: var(--primary-color); }
.hub-sort-option.is-selected {
    background: color-mix(in srgb, var(--primary-color) 12%, var(--card-bg, #ffffff));
    color: var(--primary-color);
    font-weight: 800;
}
.hub-sort-option.is-selected .hso-icon { color: var(--primary-color); }
.hub-sort-option .hso-check {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
}
.hub-sort-option .hso-check i { width: 13px; height: 13px; }

/* Hub View Mode Switcher */
.hub-view-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2px;
}
.hub-view-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.hub-view-btn svg.lucide, .hub-view-btn i {
    width: 14px !important;
    height: 14px !important;
}
.hub-view-btn:hover {
    color: var(--text-main);
}
.hub-view-btn.active {
    background: var(--primary-color);
    color: #ffffff;
}

/* Hub Cards Grid Mode */
.hub-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.hub-video-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}
.hub-video-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.hvc-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: var(--border-color);
    overflow: hidden;
}
.hvc-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hvc-segment-badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
}
.hvc-play-btn {
    position: absolute;
    bottom: 8px;
    inset-inline-end: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.hvc-play-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
}
.hvc-play-btn i, .hvc-play-btn svg {
    width: 14px !important;
    height: 14px !important;
}
.hvc-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.hvc-title {
    font-size: 13px;
    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;
    background: var(--card-bg, #ffffff);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.hvc-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.hvc-stat-lbl {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
}
.hvc-stat-val {
    font-size: 12px;
    font-weight: 800;
    font-family: monospace;
    color: var(--text-main);
}
.hvc-rec-box {
    margin-top: auto;
}

/* Wide & Export Buttons */
.hub-wide-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 11px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.hub-wide-toggle-btn i { width: 13px; height: 13px; }
.hub-wide-toggle-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.hub-wide-toggle-btn.active {
    background: color-mix(in srgb, var(--primary-color) 12%, var(--card-bg, #ffffff));
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hub-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}
.hub-export-btn i { width: 13px; height: 13px; }
.hub-export-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 3. Quantum Table */
.audit-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.car-table-quantum {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    text-align: start;
}
.car-table-quantum thead tr {
    background: color-mix(in srgb, var(--bg-body) 60%, var(--card-bg, #ffffff));
}
.car-table-quantum th {
    padding: 12px 14px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.car-table-quantum th.sortable-th {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.car-table-quantum th.sortable-th:hover {
    color: var(--primary-color);
}
.th-sort-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.th-sort-icon {
    width: 12px !important;
    height: 12px !important;
}

.car-table-quantum tbody tr.audit-table-row {
    transition: background-color 0.2s ease;
}
.car-table-quantum tbody tr.audit-table-row:hover {
    background-color: color-mix(in srgb, var(--primary-color) 4%, var(--card-bg, #ffffff));
}
.car-table-quantum td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}
.car-table-quantum tbody tr:last-child td {
    border-bottom: none;
}

/* Columns */
.th-num, .col-num {
    width: 48px;
    min-width: 44px;
    max-width: 52px;
    text-align: center;
    padding-left: 6px !important;
    padding-right: 6px !important;
}
.vid-index-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--border-color) 40%, var(--bg-body));
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
tr.audit-table-row:hover .vid-index-badge {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--card-bg, #ffffff));
}

.th-video, .col-title { min-width: 260px; max-width: 380px; }
.th-stat, .col-stat { min-width: 100px; }
.th-spark, .col-spark { min-width: 135px; }
.th-status, .col-status { min-width: 110px; }
.th-rec, .col-rec { min-width: 280px; }
.th-actions, .col-actions { min-width: 110px; text-align: center; }

/* Rich Video Cell */
.vid-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vid-thumb-container {
    width: 96px;
    height: 54px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.vid-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vid-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    color: var(--text-muted);
}
.vid-duration-badge {
    position: absolute;
    bottom: 3px;
    inset-inline-end: 3px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 9.5px;
    font-family: monospace;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
}
.vid-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #fff;
    text-decoration: none;
}
.vid-thumb-container:hover .vid-play-overlay { opacity: 1; }
.vid-play-overlay i { width: 18px; height: 18px; }

.vid-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.vid-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.vid-title:hover { color: var(--primary-color); }

.vid-meta-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.micro-tag {
    font-size: 10px !important;
    padding: 1px 6px !important;
}
.vid-views-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: monospace;
}
.vid-views-chip i { width: 11px; height: 11px; }

/* Sparkline in Table */
.sparkline-container {
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.spark-eng-el {
    width: 130px;
    height: 38px;
}
.spark-avg-badge {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 2px;
}
.spark-avg-badge strong {
    color: var(--text-main);
    font-family: monospace;
}

/* Smart Recommendation Box inside Row */
.table-rec-box {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 280px;
    max-width: 480px;
    transition: all 0.2s ease;
}
.table-rec-box:hover {
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
}
.trb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.trb-type {
    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) 10%, transparent);
    padding: 2px 8px;
    border-radius: 6px;
}
.trb-type i { width: 12px; height: 12px; }
.trb-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    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) 8%, transparent);
}
.trb-copy-btn.is-copied {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.trb-copy-btn i { width: 12px; height: 12px; }
.trb-body {
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Row Action Buttons */
.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);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}
.row-act-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 8%, var(--card-bg));
}
.row-act-btn i, .row-act-btn svg { width: 14px; height: 14px; }

/* =========================================================================
   Strict Lucide Icon Sizing & Sizing Standardization (Prevent 24px Blowup)
   ========================================================================= */
.engagement-diagnostic-container [data-lucide],
.engagement-diagnostic-container svg.lucide {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

.trb-copy-btn i, .trb-copy-btn svg { width: 12px; height: 12px; }
.trb-type i, .trb-type svg { width: 13px; height: 13px; }
.vid-meta-chips i, .vid-meta-chips svg { width: 12px; height: 12px; }
.th-sort-icon i, .th-sort-icon svg { width: 12px; height: 12px; }
.hub-live-badge i, .hub-live-badge svg { width: 12px; height: 12px; }
.hub-pill i, .hub-pill svg { width: 13px; height: 13px; }
.hub-search-box i, .hub-search-box svg { width: 14px; height: 14px; }
.hub-sort-btn i, .hub-sort-btn svg { width: 13px; height: 13px; }
.hub-view-btn i, .hub-view-btn svg { width: 14px; height: 14px; }
.hub-wide-toggle-btn i, .hub-wide-toggle-btn svg { width: 14px; height: 14px; }
.hub-export-btn i, .hub-export-btn svg { width: 14px; height: 14px; }
.hero-badge i, .hero-badge svg { width: 14px; height: 14px; }
.hfb-item i, .hfb-item svg { width: 14px; height: 14px; }
.yt-compliance-micro-pill i, .yt-compliance-micro-pill svg { width: 13px; height: 13px; }
.modal-close-btn i, .modal-close-btn svg { width: 16px; height: 16px; }
.modal-title-wrap i, .modal-title-wrap svg { width: 18px; height: 18px; }

/* =========================================================================
   ApexCharts Quantum Tooltip Global Reset & Luxury Micro-Pill Sparkline Styling
   ========================================================================= */
.analyzer-container .apexcharts-tooltip,
.analyzer-container .apexcharts-tooltip.apexcharts-theme-light,
.analyzer-container .apexcharts-tooltip.apexcharts-theme-dark,
.sparkline-container .apexcharts-tooltip,
.spark-eng-el .apexcharts-tooltip {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none !important;
}

/* Sleek Micro-Pill Tooltip for Table Engagement Sparklines */
.gr-spark-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: color-mix(in srgb, var(--card-bg, #0f172a) 95%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main, #ffffff);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 800;
    font-family: monospace;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border-color);
    pointer-events: none !important;
    white-space: nowrap;
}
.gr-spark-pill strong {
    color: var(--primary-color);
}

/* =========================================================================
   Next-Gen Load More Uploads Section
   ========================================================================= */
.table-load-more-container {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.load-more-quantum-box {
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-load-more-uploads {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.btn-load-more-uploads:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-color) 18%, transparent);
}
.btn-load-more-uploads:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.btn-load-more-uploads i, .btn-load-more-uploads svg {
    width: 16px;
    height: 16px;
}
.load-more-badge {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 800;
}
.spin-icon {
    animation: spinLoad 1s linear infinite;
}
@keyframes spinLoad {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================================================================
   Subtle YouTube Disclaimer Footnote (Replaced Giant Box)
   ========================================================================= */
.yt-disclaimer-subtle {
    margin-top: 32px;
    padding: 14px 20px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-body, #0a0f1d) 70%, var(--card-bg, #0f172a));
    border: 1px dashed var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.yt-disclaimer-subtle a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.15s;
}
.yt-disclaimer-subtle a:hover {
    text-decoration: underline;
    opacity: 0.85;
}


