/**
 * RenderCAD Metrics Dashboard - Data Terminal Aesthetic
 * Clean, readable, data-focused design with technical precision
 */

/* ========================================
   METRICS TYPOGRAPHY
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* Override base for metrics page - better readability */
.metrics-container {
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Monospace for numbers - terminal aesthetic */
.stat-value,
.stat-number,
.data-value,
#dau-value,
#last-failure-ago,
#stat-total-users,
#stat-total-renders,
#stat-success-rate,
#stat-mrr,
#detail-paid-users,
#detail-free-users,
#detail-dau,
#detail-mau {
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   METRICS LAYOUT
   ======================================== */
.metrics-main-content {
    padding: var(--space-3xl) var(--space-xl);
    min-height: 100vh;
}

.metrics-container {
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: var(--text-2xl);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ========================================
   STAT CARDS - Improved Contrast
   ======================================== */
.simple-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.simple-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.simple-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.simple-stat-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.2), 0 0 0 1px rgba(0, 212, 255, 0.1);
}

.simple-stat-card:hover::before,
.simple-stat-card:hover::after {
    opacity: 1;
}

/* Scaling Metrics Color Indicators */
.stat-card-ok {
    border-color: rgba(40, 167, 69, 0.5);
}

.stat-card-ok::before {
    background: linear-gradient(90deg, #28a745, transparent);
    opacity: 0.6;
}

.stat-card-warning {
    border-color: rgba(255, 193, 7, 0.5);
}

.stat-card-warning::before {
    background: linear-gradient(90deg, #ffc107, transparent);
    opacity: 0.6;
}

.stat-card-danger {
    border-color: rgba(220, 53, 69, 0.5);
}

.stat-card-danger::before {
    background: linear-gradient(90deg, #dc3545, transparent);
    opacity: 0.6;
}

/* ========================================
   SCALING METRICS GRID - Fixed Layout
   ======================================== */
.scaling-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .scaling-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .scaling-metrics-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.metric-card-wrapper {
    min-width: 0; /* Prevents grid blowout */
}

.metric-card-wrapper .simple-stat-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.stat-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.stat-trend {
    display: block;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================
   PANELS - Better Hierarchy
   ======================================== */
.simple-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.simple-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.simple-panel:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.025) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.simple-panel:hover::before {
    opacity: 1;
}

.panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: var(--text-lg);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.panel-title i {
    color: var(--accent-cyan);
    font-size: 0.9em;
}

/* ========================================
   CHART CONTAINERS
   ======================================== */
canvas {
    filter: contrast(1.1) brightness(1.05);
}

#signups-chart,
#renders-chart,
#tier-usage-chart,
#token-usage-chart {
    max-height: 280px;
    margin-top: var(--space-lg);
}

/* ========================================
   METRICS TABS - Cleaner
   ======================================== */
.metrics-tabs {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    display: inline-flex;
    gap: var(--space-xs);
}

.metrics-tabs .nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-xl);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.metrics-tabs .nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.metrics-tabs .nav-link.active {
    color: #ffffff;
    background: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.metrics-tabs .nav-link i {
    margin-right: var(--space-sm);
    opacity: 0.8;
}

.metrics-tabs .nav-link.active i {
    opacity: 1;
}

/* ========================================
   DATE RANGE FILTER - Better Visibility
   ======================================== */
#date-range-filter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    display: flex;
    gap: 0;
}

#date-range-filter button {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: var(--text-xs);
    padding: var(--space-sm) var(--space-lg);
    border: none !important;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#date-range-filter button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

#date-range-filter button.active {
    background: var(--accent-cyan);
    color: #0a0a0f;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* ========================================
   ACTIVE USERS & QUICK STATS
   ======================================== */
#active-users-today,
#active-subscribers,
#last-failure {
    text-align: center;
    padding: var(--space-xl) 0;
}

#active-users-today .h3,
#last-failure .h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

#active-users-today small,
#last-failure small {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   FEEDBACK LIST - Enhanced Readability
   ======================================== */
#feedback-list,
#feedback-archive {
    max-height: 500px;
    overflow-y: auto;
    margin-top: var(--space-lg);
}

/* Custom scrollbar */
#feedback-list::-webkit-scrollbar,
#feedback-archive::-webkit-scrollbar {
    width: 8px;
}

#feedback-list::-webkit-scrollbar-track,
#feedback-archive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

#feedback-list::-webkit-scrollbar-thumb,
#feedback-archive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

#feedback-list::-webkit-scrollbar-thumb:hover,
#feedback-archive::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.feedback-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-md);
    transition: all 0.2s ease;
}

.feedback-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.feedback-item:last-child {
    margin-bottom: 0;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feedback-user {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
}

.feedback-time {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
}

.feedback-message {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.feedback-type {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feedback-type.bug {
    background: var(--error-dim);
    color: var(--error);
    border: 1px solid var(--error);
}

.feedback-type.feature {
    background: var(--info-dim);
    color: var(--info);
    border: 1px solid var(--info);
}

.feedback-type.feedback {
    background: var(--success-dim);
    color: var(--success);
    border: 1px solid var(--success);
}

/* ========================================
   TOP USERS LIST
   ======================================== */
#top-users-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.user-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.user-email {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: var(--text-sm);
}

.user-count {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: var(--text-lg);
}

/* ========================================
   ERROR BREAKDOWN
   ======================================== */
#error-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.error-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
}

.error-type {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: var(--text-sm);
}

.error-count {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--error);
    font-size: var(--text-lg);
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-warning {
    background: var(--warning) !important;
    color: #0a0a0f !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* ========================================
   SUBSCRIBER TIERS
   ======================================== */
#active-subscribers {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.tier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.tier-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
}

.tier-count {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: var(--text-base);
}

/* ========================================
   LOADING STATE
   ======================================== */
#loading-state {
    padding: var(--space-4xl);
    text-align: center;
}

#loading-state .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 3px;
    border-color: var(--accent-cyan);
    border-right-color: transparent;
}

#loading-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-base);
    margin-top: var(--space-xl);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .metrics-main-content {
        padding: var(--space-xl) var(--space-md);
    }

    .stat-value {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .simple-stat-card {
        padding: var(--space-xl);
    }

    .simple-panel {
        padding: var(--space-xl);
    }

    .metrics-tabs {
        width: 100%;
        flex-direction: column;
    }

    .metrics-tabs .nav-link {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: var(--text-xl);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.simple-stat-card,
.simple-panel {
    animation: fadeInUp 0.5s ease backwards;
}

.simple-stat-card:nth-child(1) { animation-delay: 0.05s; }
.simple-stat-card:nth-child(2) { animation-delay: 0.1s; }
.simple-stat-card:nth-child(3) { animation-delay: 0.15s; }
.simple-stat-card:nth-child(4) { animation-delay: 0.2s; }

/* ========================================
   UTILITY
   ======================================== */
.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: var(--space-xl) !important; }
.mt-3 { margin-top: var(--space-xl) !important; }
.ms-2 { margin-left: var(--space-sm) !important; }
.me-1 { margin-right: var(--space-xs) !important; }

/* ========================================
   STICKY HEADER & DATE FILTER
   ======================================== */
.metrics-sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: var(--space-lg) 0;
    margin: 0 calc(-1 * var(--space-xl));
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics-sticky-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.5) 0%, transparent 100%);
    pointer-events: none;
}

/* ========================================
   SKELETON LOADERS
   ======================================== */
.skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-value {
    height: 3rem;
    width: 80%;
    margin-bottom: var(--space-md);
}

.skeleton-label {
    height: 1rem;
    width: 60%;
    margin-bottom: var(--space-sm);
}

.skeleton-trend {
    height: 0.75rem;
    width: 40%;
}

.skeleton-chart {
    height: 200px;
    width: 100%;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========================================
   LIVE MODE & DATA UPDATES
   ======================================== */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
}

.live-indicator .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.live-indicator.live-active .live-dot {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Data updated animation */
.data-updated {
    animation: data-flash 0.5s ease;
}

@keyframes data-flash {
    0% { color: var(--accent-cyan); text-shadow: 0 0 20px var(--accent-cyan); }
    100% { color: #ffffff; text-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
}

/* Number counting animation */
.stat-value {
    transition: color 0.3s ease;
}

/* ========================================
   EXPORT BUTTONS
   ======================================== */
.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
}

.export-btn i {
    font-size: 0.9em;
}

/* ========================================
   REVENUE TAB STYLES
   ======================================== */
.stat-card-revenue {
    border-color: rgba(34, 197, 94, 0.4);
}

.stat-card-revenue::before {
    background: linear-gradient(90deg, #22c55e, transparent);
    opacity: 0.5;
}

.stat-card-revenue .stat-value {
    color: #22c55e;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* Cohort Heatmap */
.cohort-grid {
    display: grid;
    gap: 2px;
    font-size: var(--text-xs);
}

.cohort-cell {
    padding: 6px 8px;
    text-align: center;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    transition: transform 0.2s ease;
}

.cohort-cell:hover {
    transform: scale(1.1);
    z-index: 1;
}

.cohort-header {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Heat colors */
.heat-0 { background: rgba(239, 68, 68, 0.1); color: rgba(239, 68, 68, 0.8); }
.heat-1 { background: rgba(245, 158, 11, 0.15); color: rgba(245, 158, 11, 0.9); }
.heat-2 { background: rgba(234, 179, 8, 0.2); color: rgba(234, 179, 8, 0.9); }
.heat-3 { background: rgba(132, 204, 22, 0.25); color: rgba(132, 204, 22, 0.9); }
.heat-4 { background: rgba(34, 197, 94, 0.3); color: rgba(34, 197, 94, 1); }

/* ========================================
   COSTS TAB STYLES
   ======================================== */
.stat-card-cost {
    border-color: rgba(245, 158, 11, 0.4);
}

.stat-card-cost::before {
    background: linear-gradient(90deg, #f59e0b, transparent);
    opacity: 0.5;
}

.profit-positive {
    color: #22c55e !important;
}

.profit-negative {
    color: #ef4444 !important;
}

.cost-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cost-alert i {
    color: var(--error);
    font-size: 1.2em;
}

/* ========================================
   QUICK ACTIONS
   ======================================== */
.quick-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #0a0a0f;
}

/* ========================================
   LAST UPDATED TIMESTAMP
   ======================================== */
.last-updated {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
}

.last-updated::before {
    content: '⏱ ';
}

/* ========================================
   COHORT HEATMAP
   ======================================== */
.cohort-grid {
    display: grid;
    gap: 2px;
}

.cohort-cell {
    padding: 0.5rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--text-xs);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cohort-cell:hover {
    transform: scale(1.05);
    z-index: 1;
}

/* Heatmap color scale - blue to cyan gradient */
.heat-0 {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
}

.heat-1 {
    background: rgba(0, 100, 200, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.heat-2 {
    background: rgba(0, 150, 220, 0.5);
    color: rgba(255, 255, 255, 0.85);
}

.heat-3 {
    background: rgba(0, 180, 240, 0.7);
    color: #ffffff;
}

.heat-4 {
    background: rgba(0, 212, 255, 0.9);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Cohort table styling */
.cohort-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}

.cohort-table th {
    padding: 0.5rem;
    font-size: var(--text-xs);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cohort-table td {
    padding: 0.5rem;
    text-align: center;
}
