/* ==========================================================================
   DATA AUDIT PLATFORM - Category Page Styles
   Design: Market Intelligence Dashboard / Data Control Center
   ========================================================================== */

:root {
    /* Primary Colors */
    --audit-bg: #0f172a;
    --audit-surface: #1e293b;
    --audit-surface-elevated: #334155;
    --audit-border: #475569;
    
    /* Accent Colors */
    --audit-primary: #3b82f6;
    --audit-success: #10b981;
    --audit-warning: #f59e0b;
    --audit-danger: #ef4444;
    --audit-info: #06b6d4;
    
    /* Text Colors */
    --audit-text-primary: #f8fafc;
    --audit-text-secondary: #94a3b8;
    --audit-text-muted: #64748b;
    
    /* Special */
    --audit-gold: #fbbf24;
    --audit-glow: rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   MAIN CONTAINER
   ========================================================================== */
.data-audit-platform {
    min-height: 100vh;
    background: var(--audit-bg);
    color: var(--audit-text-primary);
    padding: 0;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.audit-breadcrumb {
    background: var(--audit-surface);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--audit-border);
}

.audit-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.875rem;
}

.audit-breadcrumb .breadcrumb-item a {
    color: var(--audit-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.audit-breadcrumb .breadcrumb-item a:hover {
    color: var(--audit-primary);
}

.audit-breadcrumb .breadcrumb-item.active {
    color: var(--audit-text-primary);
}

.audit-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--audit-text-muted);
}

/* ==========================================================================
   CATEGORY INSIGHT HEADER - Market Dashboard Style
   ========================================================================== */
.category-insight-header {
    background: linear-gradient(135deg, var(--audit-surface) 0%, var(--audit-bg) 100%);
    border-bottom: 1px solid var(--audit-border);
    padding: 2rem 1.5rem;
}

.insight-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.insight-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.insight-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--audit-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.insight-title h1 i {
    color: var(--audit-primary);
}

.insight-subtitle {
    color: var(--audit-text-secondary);
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

.insight-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.update-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--audit-text-muted);
    font-size: 0.85rem;
    background: var(--audit-surface-elevated);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.update-time i {
    color: var(--audit-success);
}

/* Market Stats Grid */
.market-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--audit-surface-elevated);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--audit-border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-tracking .stat-icon {
    background: rgba(59, 130, 246, 0.2);
    color: var(--audit-primary);
}

.stat-price .stat-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--audit-success);
}

.stat-verified .stat-icon {
    background: rgba(6, 182, 212, 0.2);
    color: var(--audit-info);
}

.stat-deal .stat-icon {
    background: rgba(245, 158, 11, 0.2);
    color: var(--audit-warning);
}

.stat-flagged .stat-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--audit-danger);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--audit-text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--audit-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-trend {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.stat-trend.trend-down {
    color: var(--audit-success);
}

.stat-trend.trend-up {
    color: var(--audit-danger);
}

/* Top Skills */
.top-skills-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.skills-label {
    color: var(--audit-text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skill-tag {
    background: var(--audit-surface-elevated);
    color: var(--audit-text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--audit-border);
}

/* ==========================================================================
   SUBCATEGORIES NAVIGATION
   ========================================================================== */
.subcategories-nav {
    background: var(--audit-surface);
    border-bottom: 1px solid var(--audit-border);
    padding: 1rem 1.5rem;
}

.subcategories-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--audit-border) transparent;
    padding-bottom: 0.25rem;
}

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--audit-surface-elevated);
    color: var(--audit-text-secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--audit-border);
    transition: all 0.2s;
}

.subcategory-chip:hover {
    background: var(--audit-primary);
    color: white;
    border-color: var(--audit-primary);
}

.subcategory-chip.active {
    background: var(--audit-primary);
    color: white;
    border-color: var(--audit-primary);
}

.subcategory-chip .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* ==========================================================================
   MAIN CONTENT LAYOUT
   ========================================================================== */
.audit-main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .audit-main-content {
        grid-template-columns: 1fr;
    }
    
    .smart-filters-sidebar {
        display: none;
    }
}

/* ==========================================================================
   SMART FILTERS SIDEBAR
   ========================================================================== */
.smart-filters-sidebar {
    background: var(--audit-surface);
    border-right: 1px solid var(--audit-border);
    padding: 1.5rem;
    height: calc(100vh - 300px);
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--audit-border);
}

.filters-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reset-filters {
    color: var(--audit-text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reset-filters:hover {
    color: var(--audit-primary);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--audit-border);
}

.filter-section-title {
    font-size: 0.85rem;
    color: var(--audit-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    display: block;
    font-size: 0.8rem;
    color: var(--audit-text-secondary);
    margin-bottom: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--audit-surface-elevated);
    border: 1px solid var(--audit-border);
    border-radius: 4px;
    color: var(--audit-text-primary);
    font-size: 0.875rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--audit-primary);
}

.filter-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--audit-surface-elevated);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--audit-border);
}

.toggle-item:hover {
    border-color: var(--audit-primary);
}

.toggle-item.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--audit-primary);
}

.toggle-item input {
    display: none;
}

.toggle-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--audit-border);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--audit-text-muted);
}

.toggle-item.active .toggle-icon {
    background: var(--audit-primary);
    color: white;
}

.toggle-text {
    font-size: 0.8rem;
    color: var(--audit-text-secondary);
}

/* Platform Stats */
.platform-stats {
    padding-top: 1rem;
}

.platform-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--audit-border);
}

.platform-stat-item:last-child {
    border-bottom: none;
}

.platform-name {
    font-weight: 500;
    color: var(--audit-text-primary);
    font-size: 0.875rem;
}

.platform-info {
    font-size: 0.75rem;
    color: var(--audit-text-muted);
}

/* ==========================================================================
   COURSE LIST
   ========================================================================== */
.course-list-main {
    padding: 1.5rem;
    background: var(--audit-bg);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--audit-border);
}

.results-count {
    font-size: 0.95rem;
    color: var(--audit-text-secondary);
}

.results-count strong {
    color: var(--audit-text-primary);
    font-size: 1.1rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--audit-surface);
    border: 1px solid var(--audit-border);
    border-radius: 4px;
    color: var(--audit-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover,
.view-btn.active {
    background: var(--audit-primary);
    color: white;
    border-color: var(--audit-primary);
}

.audit-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==========================================================================
   DATA AUDIT CARD
   ========================================================================== */
.audit-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    background: var(--audit-surface);
    border: 1px solid var(--audit-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.audit-card:hover {
    border-color: var(--audit-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.audit-card.top-tier {
    border-color: var(--audit-gold);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
}

.audit-card.low-quality {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .audit-card {
        grid-template-columns: 1fr;
    }
}

/* Card Header Section (Thumbnail & Badges) */
.card-header-section {
    position: relative;
    background: var(--audit-surface-elevated);
}

.badges-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    flex-wrap: wrap;
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-verified {
    background: rgba(16, 185, 129, 0.2);
    color: var(--audit-success);
    border: 1px solid var(--audit-success);
}

.badge-ai {
    background: rgba(245, 158, 11, 0.2);
    color: var(--audit-warning);
    border: 1px solid var(--audit-warning);
}

.badge-flagged {
    background: rgba(239, 68, 68, 0.2);
    color: var(--audit-danger);
    border: 1px solid var(--audit-danger);
}

.badge-pending {
    background: rgba(100, 116, 139, 0.2);
    color: var(--audit-text-muted);
    border: 1px solid var(--audit-border);
}

.bloom-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--audit-success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--audit-warning);
}

.badge-primary {
    background: rgba(59, 130, 246, 0.2);
    color: var(--audit-primary);
}

.badge-info {
    background: rgba(6, 182, 212, 0.2);
    color: var(--audit-info);
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.2);
    color: var(--audit-text-secondary);
}

.badge-light {
    background: rgba(248, 250, 252, 0.1);
    color: var(--audit-text-muted);
}

/* Thumbnail */
.thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16/9;
}

.thumbnail-wrapper.thumbnail-dimmed {
    filter: grayscale(50%);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-tier-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, var(--audit-gold) 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quality-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-overlay span {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Card Body Section */
.card-body-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-info {
    flex: 1;
}

.course-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.course-title a {
    color: var(--audit-text-primary);
    text-decoration: none;
}

.course-title a:hover {
    color: var(--audit-primary);
}

.instructor-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.instructor-name {
    color: var(--audit-text-secondary);
    font-size: 0.85rem;
}

.instructor-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--audit-success);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.platform-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-name {
    background: var(--audit-primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.level-tag {
    background: var(--audit-surface-elevated);
    color: var(--audit-text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Skill Density */
.skill-density-section {
    padding: 0.75rem;
    background: var(--audit-surface-elevated);
    border-radius: 6px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-label {
    font-size: 0.8rem;
    color: var(--audit-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.skill-score {
    font-size: 0.9rem;
}

.skill-score small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.skill-bar-container {
    height: 6px;
    background: var(--audit-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.main-skills {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.skill-chip {
    background: var(--audit-bg);
    color: var(--audit-text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* Price Sparkline Section */
.price-sparkline-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--audit-surface-elevated);
    border-radius: 6px;
    gap: 1rem;
}

.price-sparkline-section.price-good {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.price-sparkline-section.price-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.price-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-current {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--audit-text-primary);
}

.price-free {
    font-size: 1rem;
    font-weight: 700;
    color: var(--audit-success);
}

.price-original {
    font-size: 0.85rem;
    color: var(--audit-text-muted);
    text-decoration: line-through;
}

.price-status {
    font-size: 0.75rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-indicator.good {
    color: var(--audit-success);
}

.status-indicator.warning {
    color: var(--audit-danger);
}

.status-indicator.neutral {
    color: var(--audit-text-muted);
}

.sparkline-container {
    flex-shrink: 0;
}

.sparkline-chart {
    display: block;
}

/* Card Footer Section */
.card-footer-section {
    padding: 1rem;
    background: var(--audit-bg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 280px;
    border-left: 1px solid var(--audit-border);
}

@media (max-width: 768px) {
    .card-footer-section {
        border-left: none;
        border-top: 1px solid var(--audit-border);
        min-width: unset;
    }
}

/* AI Verdict */
.ai-verdict {
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    display: flex;
    gap: 0.5rem;
}

.ai-verdict.verdict-positive {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--audit-success);
}

.ai-verdict.verdict-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--audit-warning);
}

.ai-verdict.verdict-negative {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--audit-danger);
}

.ai-verdict.verdict-neutral {
    background: var(--audit-surface-elevated);
    border: 1px solid var(--audit-border);
    color: var(--audit-text-secondary);
}

.verdict-emoji {
    font-size: 1.1rem;
}

.verdict-text {
    flex: 1;
}

/* Meta Sentiment */
.meta-sentiment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--audit-text-secondary);
}

.sentiment-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sentiment-icon.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--audit-success);
}

.sentiment-icon.negative {
    background: rgba(239, 68, 68, 0.2);
    color: var(--audit-danger);
}

.sentiment-icon.neutral,
.sentiment-icon.mixed {
    background: rgba(100, 116, 139, 0.2);
    color: var(--audit-text-muted);
}

.sentiment-count {
    color: var(--audit-text-muted);
}

/* CTA Buttons */
.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-audit-detail,
.btn-buy-now {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.2s;
}

.btn-audit-detail {
    background: var(--audit-surface);
    color: var(--audit-text-primary);
    border: 1px solid var(--audit-border);
}

.btn-audit-detail:hover {
    background: var(--audit-primary);
    color: white;
    border-color: var(--audit-primary);
}

.btn-buy-now {
    background: var(--audit-success);
    color: white;
    border: 1px solid var(--audit-success);
}

.btn-buy-now:hover {
    background: #0d9668;
    border-color: #0d9668;
    color: white;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.audit-pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--audit-border);
}

.audit-pagination .pagination {
    gap: 0.25rem;
}

.audit-pagination .page-link {
    background: var(--audit-surface);
    border: 1px solid var(--audit-border);
    color: var(--audit-text-secondary);
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
}

.audit-pagination .page-link:hover {
    background: var(--audit-primary);
    color: white;
    border-color: var(--audit-primary);
}

.audit-pagination .page-item.active .page-link {
    background: var(--audit-primary);
    color: white;
    border-color: var(--audit-primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .market-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .market-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .insight-title h1 {
        font-size: 1.35rem;
    }
    
    .category-insight-header {
        padding: 1.5rem 1rem;
    }
    
    .course-list-main {
        padding: 1rem;
    }
    
    .card-body-section,
    .card-footer-section {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .market-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .badges-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   MARKET CONTROL HEADER
   ========================================================================== */
.market-control-header {
    background: linear-gradient(180deg, var(--audit-surface) 0%, var(--audit-bg) 100%);
    border-bottom: 1px solid var(--audit-border);
}

.audit-breadcrumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--audit-surface);
    border-bottom: 1px solid var(--audit-border);
}

.data-freshness {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--audit-text-muted);
    background: var(--audit-surface-elevated);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
}

.data-freshness i {
    color: var(--audit-success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================================================
   CATEGORY HERO
   ========================================================================== */
.category-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--audit-text-primary);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    color: var(--audit-primary);
    font-size: 1.5rem;
}

.category-tagline {
    color: var(--audit-text-secondary);
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tagline i {
    color: var(--audit-success);
}

.tracking-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--audit-surface-elevated);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--audit-border);
    text-align: center;
}

.tracking-label {
    font-size: 0.7rem;
    color: var(--audit-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tracking-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--audit-primary);
    line-height: 1.2;
}

.tracking-suffix {
    font-size: 0.8rem;
    color: var(--audit-text-secondary);
}

/* ==========================================================================
   MARKET DASHBOARD - TICKER STYLE
   ========================================================================== */
.market-dashboard {
    background: var(--audit-surface);
    padding: 1.5rem;
    border-bottom: 1px solid var(--audit-border);
}

.dashboard-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .dashboard-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

.ticker-card {
    background: var(--audit-surface-elevated);
    border: 1px solid var(--audit-border);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.ticker-card:hover {
    border-color: var(--audit-primary);
    box-shadow: 0 0 20px var(--audit-glow);
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--audit-text-muted);
    margin-bottom: 0.75rem;
}

.ticker-header i {
    color: var(--audit-primary);
}

.ticker-value {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ticker-value .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--audit-text-primary);
}

.ticker-value .change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.ticker-value .change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--audit-success);
}

.ticker-value .change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: var(--audit-danger);
}

.ticker-value .change.neutral {
    background: rgba(148, 163, 184, 0.2);
    color: var(--audit-text-secondary);
}

.ticker-subtitle {
    font-size: 0.75rem;
    color: var(--audit-text-muted);
    margin-top: 0.5rem;
}

/* Audit Distribution */
.audit-distribution {
    display: flex;
    gap: 0.75rem;
}

.audit-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0.5rem;
    background: var(--audit-bg);
    border-radius: 6px;
}

.audit-stat i {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.audit-stat .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.audit-stat .stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.audit-stat.verified i { color: var(--audit-success); }
.audit-stat.verified .stat-value { color: var(--audit-success); }

.audit-stat.ai-analyzed i { color: var(--audit-info); }
.audit-stat.ai-analyzed .stat-value { color: var(--audit-info); }

.audit-stat.pending i { color: var(--audit-warning); }
.audit-stat.pending .stat-value { color: var(--audit-warning); }

/* Health Distribution */
.health-distribution {
    display: flex;
    gap: 0.5rem;
}

.health-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0.5rem;
    background: var(--audit-bg);
    border-radius: 6px;
}

.health-stat i {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.health-stat .stat-value {
    font-size: 1rem;
    font-weight: 700;
}

.health-stat .stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    text-align: center;
}

.health-stat.good i { color: var(--audit-success); }
.health-stat.good .stat-value { color: var(--audit-success); }

.health-stat.neutral i { color: var(--audit-info); }
.health-stat.neutral .stat-value { color: var(--audit-info); }

.health-stat.warning i { color: var(--audit-warning); }
.health-stat.warning .stat-value { color: var(--audit-warning); }

/* Skill Stats */
.skill-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0.75rem;
}

.skill-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-stat .stat-label {
    font-size: 0.65rem;
    color: var(--audit-text-muted);
    text-transform: uppercase;
}

.skill-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--audit-text-primary);
}

.skill-stat .stat-value.highlight {
    color: var(--audit-gold);
}

.bloom-distribution {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--audit-border);
}

.bloom-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--audit-text-secondary);
}

.bloom-stat.practical i { color: var(--audit-success); }
.bloom-stat.theoretical i { color: var(--audit-info); }

/* Top Course Highlight */
.top-course-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1) 0%, transparent 100%);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    margin-top: 1rem;
}

.highlight-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--audit-gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.highlight-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.highlight-title {
    color: var(--audit-text-primary);
    text-decoration: none;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.highlight-title:hover {
    color: var(--audit-gold);
}

.highlight-score {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--audit-gold);
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================================================
   SUBCATEGORIES PANEL
   ========================================================================== */
.subcategories-panel {
    background: var(--audit-surface);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--audit-border);
}

.subcategories-panel .panel-header {
    margin-bottom: 1rem;
}

.subcategories-panel .panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--audit-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subcategory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subcategory-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--audit-surface-elevated);
    border: 1px solid var(--audit-border);
    border-radius: 20px;
    color: var(--audit-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.subcategory-card:hover {
    border-color: var(--audit-primary);
    color: var(--audit-primary);
    background: rgba(59, 130, 246, 0.1);
}

.subcategory-card.active {
    background: var(--audit-primary);
    border-color: var(--audit-primary);
    color: white;
}

.subcat-name {
    font-weight: 500;
}

.subcat-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.subcat-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ==========================================================================
   AUDIT CONTENT AREA - TWO COLUMN LAYOUT
   ========================================================================== */
.audit-content-area {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .audit-content-area {
        grid-template-columns: 1fr;
    }
    
    .smart-filters-panel {
        display: none;
    }
}

/* ==========================================================================
   SMART FILTERS PANEL
   ========================================================================== */
.smart-filters-panel {
    background: var(--audit-surface);
    border-right: 1px solid var(--audit-border);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.smart-filters-panel .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--audit-border);
}

.smart-filters-panel .filters-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--audit-text-primary);
}

.reset-btn {
    color: var(--audit-text-muted);
    font-size: 1rem;
    transition: color 0.2s;
}

.reset-btn:hover {
    color: var(--audit-danger);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--audit-border);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--audit-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.filter-label i {
    color: var(--audit-primary);
}

/* Form Select Styling */
.smart-filters-panel .form-select {
    background-color: var(--audit-surface-elevated);
    border: 1px solid var(--audit-border);
    color: var(--audit-text-primary);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.smart-filters-panel .form-select:focus {
    border-color: var(--audit-primary);
    box-shadow: 0 0 0 2px var(--audit-glow);
}

/* Density Options */
.density-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.density-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--audit-surface-elevated);
    border: 1px solid var(--audit-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.density-option:hover {
    border-color: var(--audit-primary);
}

.density-option input {
    accent-color: var(--audit-primary);
}

.density-option span {
    font-size: 0.85rem;
    color: var(--audit-text-secondary);
}

.density-option.active,
.density-option:has(input:checked) {
    border-color: var(--audit-primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Price Health Options */
.price-health-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-health-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--audit-surface-elevated);
    border: 1px solid var(--audit-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.price-health-option:hover {
    border-color: var(--audit-primary);
}

.price-health-option input {
    accent-color: var(--audit-primary);
}

.price-health-option span {
    font-size: 0.85rem;
    color: var(--audit-text-secondary);
}

/* Audit Status Options */
.audit-status-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.audit-status-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--audit-surface-elevated);
    border: 1px solid var(--audit-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.audit-status-option:hover {
    border-color: var(--audit-primary);
}

.audit-status-option input {
    accent-color: var(--audit-primary);
}

/* Bloom Legend */
.bloom-legend {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: var(--audit-bg);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--audit-text-muted);
}

/* Quick Filters */
.quick-filters {
    border-bottom: none !important;
}

.quick-filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--audit-surface-elevated);
    border: 1px solid var(--audit-border);
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--audit-text-secondary);
    transition: all 0.2s;
}

.quick-filter-option:hover {
    border-color: var(--audit-primary);
}

.quick-filter-option input {
    accent-color: var(--audit-primary);
}

/* ==========================================================================
   AUDIT RESULTS MAIN
   ========================================================================== */
.audit-results {
    padding: 1.5rem;
    background: var(--audit-bg);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--audit-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--audit-text-secondary);
}

.results-count strong {
    color: var(--audit-text-primary);
}

.view-controls {
    display: flex;
    gap: 0.25rem;
}

.view-btn {
    background: var(--audit-surface);
    border: 1px solid var(--audit-border);
    color: var(--audit-text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    border-color: var(--audit-primary);
    color: var(--audit-primary);
}

.view-btn.active {
    background: var(--audit-primary);
    border-color: var(--audit-primary);
    color: white;
}

/* Audit Cards Grid */
.audit-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.audit-cards-grid.view-list {
    grid-template-columns: 1fr;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--audit-text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--audit-text-muted);
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--audit-text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   DATA AUDIT CARD
   ========================================================================== */
.data-audit-card {
    background: var(--audit-surface);
    border: 1px solid var(--audit-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.data-audit-card:hover {
    border-color: var(--audit-primary);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.data-audit-card.top-tier {
    border-color: var(--audit-gold);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, var(--audit-surface) 100%);
}

.data-audit-card.top-tier:hover {
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.2);
}

.data-audit-card.low-quality {
    opacity: 0.7;
    border-color: var(--audit-danger);
}

/* Card Header Section */
.card-header-section {
    position: relative;
}

.thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
}

.course-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.data-audit-card:hover .course-thumbnail {
    transform: scale(1.05);
}

.dim-thumbnail {
    filter: brightness(0.6);
}

.top-tier-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Audit Badges */
.audit-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.audit-badge.verified {
    background: var(--audit-success);
    color: white;
}

.audit-badge.ai-analyzed {
    background: var(--audit-info);
    color: white;
}

.audit-badge.pending {
    background: var(--audit-warning);
    color: #1e293b;
}

/* Bloom Badge */
.bloom-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.bloom-badge.practical {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.bloom-badge.theoretical {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

/* Platform Badge */
.platform-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    border-radius: 4px;
}

/* Card Body Section */
.card-body-section {
    padding: 1rem;
    flex: 1;
}

.course-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.course-title a {
    color: var(--audit-text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-title a:hover {
    color: var(--audit-primary);
}

.course-instructor {
    font-size: 0.8rem;
    color: var(--audit-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Skill Density Section */
.skill-density-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--audit-surface-elevated);
    border-radius: 8px;
}

.density-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.density-label {
    font-size: 0.75rem;
    color: var(--audit-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.density-value {
    font-size: 0.9rem;
    font-weight: 700;
}

.density-value.density-excellent { color: var(--audit-gold); }
.density-value.density-good { color: var(--audit-success); }
.density-value.density-average { color: var(--audit-info); }
.density-value.density-below-average { color: var(--audit-warning); }
.density-value.density-low { color: var(--audit-danger); }

.density-bar-container {
    height: 6px;
    background: var(--audit-bg);
    border-radius: 3px;
    overflow: hidden;
}

.density-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.density-bar.density-excellent { background: var(--audit-gold); }
.density-bar.density-good { background: var(--audit-success); }
.density-bar.density-average { background: var(--audit-info); }
.density-bar.density-below-average { background: var(--audit-warning); }
.density-bar.density-low { background: var(--audit-danger); }

.density-warning {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--audit-danger);
    margin-top: 0.5rem;
}

/* Price Section */
.price-section {
    margin-bottom: 1rem;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--audit-success);
}

.original-price {
    font-size: 0.85rem;
    color: var(--audit-text-muted);
    text-decoration: line-through;
}

.price-free {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--audit-success);
}

/* Price Trend Section */
.price-trend-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.sparkline-container {
    flex-shrink: 0;
}

.sparkline-svg {
    display: block;
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.trend-indicator.trend-historic-low {
    background: rgba(16, 185, 129, 0.2);
    color: var(--audit-success);
}

.trend-indicator.trend-decreasing {
    background: rgba(16, 185, 129, 0.15);
    color: var(--audit-success);
}

.trend-indicator.trend-stable {
    background: rgba(148, 163, 184, 0.2);
    color: var(--audit-text-secondary);
}

.trend-indicator.trend-increasing {
    background: rgba(245, 158, 11, 0.2);
    color: var(--audit-warning);
}

.trend-indicator.trend-inflated {
    background: rgba(239, 68, 68, 0.2);
    color: var(--audit-danger);
}

/* Price Range Info */
.price-range-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--audit-text-muted);
}

.range-item {
    display: flex;
    align-items: center;
}

.range-divider {
    color: var(--audit-border);
}

/* Course Meta */
.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--audit-text-muted);
}

.meta-item.practice {
    color: var(--audit-success);
}

/* Card Footer Section */
.card-footer-section {
    padding: 1rem;
    background: var(--audit-surface-elevated);
    border-top: 1px solid var(--audit-border);
}

/* AI Verdict */
.ai-verdict {
    margin-bottom: 0.75rem;
}

.verdict-text {
    font-size: 0.8rem;
    color: var(--audit-text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Review Section */
.meta-review-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.sentiment-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.sentiment-positive { color: var(--audit-success); }
.sentiment-neutral { color: var(--audit-warning); }
.sentiment-negative { color: var(--audit-danger); }

.sentiment-value {
    font-weight: 600;
    color: var(--audit-text-primary);
}

.sentiment-label {
    color: var(--audit-text-muted);
}

.audit-date {
    font-size: 0.75rem;
    color: var(--audit-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* CTA Button */
.btn-view-audit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--audit-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-audit:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   AUDIT PAGINATION (already defined above, extended)
   ========================================================================== */
.audit-pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--audit-border);
}

.audit-pagination .pagination {
    gap: 0.25rem;
}

.audit-pagination .page-item.disabled .page-link {
    background: transparent;
    border-color: var(--audit-border);
    color: var(--audit-text-muted);
}
/* ==========================================================================
   LIST VIEW - HORIZONTAL CARDS
   ========================================================================== */
.audit-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.audit-card-list-item {
    display: grid;
    grid-template-columns: 380px 1fr 280px;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.audit-card-list-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.audit-card-list-item.top-tier {
    border-left: 4px solid var(--audit-success);
}

.audit-card-list-item.low-quality {
    opacity: 0.7;
    border-left: 4px solid var(--audit-danger);
}

/* ========== LEFT SECTION ========== */
.card-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.card-select {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

.compare-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--audit-primary);
}

.audit-status-badge {
    margin-left: 28px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.verified {
    background: #dcfce7;
    color: #166534;
}

.status-badge.ai-analyzed {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.card-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f3f4f6;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-title-section .course-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.card-title-section .course-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.card-title-section .course-title a:hover {
    color: var(--audit-primary);
}

.course-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.course-meta-row .meta-level {
    font-weight: 500;
}

.course-meta-row .meta-level.practical {
    color: var(--audit-success);
}

.course-meta-row .meta-level.theoretical {
    color: #9ca3af;
}

.course-meta-row .meta-item i {
    margin-right: 0.25rem;
}

/* ========== MIDDLE SECTION ========== */
.card-middle {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.skill-density-block {
    background: #f9fafb;
    padding: 0.75rem;
    border-radius: 8px;
}

.density-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.density-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.density-bar-wrapper {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.density-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.density-bar.density-excellent { background: linear-gradient(90deg, #10b981, #059669); }
.density-bar.density-good { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.density-bar.density-average { background: linear-gradient(90deg, #f59e0b, #d97706); }
.density-bar.density-below-average { background: linear-gradient(90deg, #f97316, #ea580c); }
.density-bar.density-low { background: linear-gradient(90deg, #ef4444, #dc2626); }

.density-score {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    min-width: 50px;
}

.density-compare {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.35rem;
}

.density-compare.positive { color: var(--audit-success); }
.density-compare.negative { color: var(--audit-danger); }

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.instructor-block, .sentiment-block {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.instructor-header, .sentiment-header {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.instructor-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

.instructor-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.sentiment-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sentiment-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.sentiment-label.positive { color: var(--audit-success); }
.sentiment-label.neutral { color: #f59e0b; }
.sentiment-label.negative { color: var(--audit-danger); }

.sentiment-detail {
    font-size: 0.75rem;
    color: #9ca3af;
}

.update-info {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ========== RIGHT SECTION ========== */
.card-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    text-align: right;
}

.price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-label {
    font-size: 0.7rem;
    color: #9ca3af;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.current-price.free {
    color: var(--audit-success);
}

.price-trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-trend-badge.trend-low {
    background: #dcfce7;
    color: #166534;
}

.price-trend-badge.trend-decreasing {
    background: #d1fae5;
    color: #047857;
}

.price-trend-badge.trend-stable {
    background: #e0e7ff;
    color: #3730a3;
}

.price-trend-badge.trend-increasing {
    background: #fef3c7;
    color: #92400e;
}

.price-trend-badge.trend-inflated {
    background: #fee2e2;
    color: #991b1b;
}

.price-health-chart {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    width: 100%;
}

.chart-header {
    font-size: 0.7rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.sparkline-wrapper {
    display: flex;
    justify-content: center;
}

.sparkline-svg {
    display: block;
}

.chart-period {
    font-size: 0.65rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.35rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
}

.btn-primary-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--audit-success);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary-cta:hover {
    background: #059669;
    color: white;
    transform: translateY(-1px);
}

.btn-secondary-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary-cta:hover {
    background: #f9fafb;
    color: #1f2937;
    border-color: #9ca3af;
}

/* ========== RESPONSIVE LIST VIEW ========== */
@media (max-width: 1200px) {
    .audit-card-list-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-middle {
        border-left: none;
        border-right: none;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem 0;
    }
    
    .card-right {
        align-items: stretch;
        text-align: left;
    }
    
    .price-section {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: row;
    }
    
    .btn-primary-cta, .btn-secondary-cta {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .audit-card-list-item {
        padding: 1rem;
    }
    
    .card-thumbnail {
        max-height: 180px;
    }
    
    .course-meta-row {
        flex-direction: column;
        gap: 0.35rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}