:root {
    --font-main: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shared Colors */
    --accent-primary: #2563eb;
    --accent-secondary: #0ea5e9;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

.light-theme {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: rgba(10, 10, 15, 0.95);
    --symbol-opacity: 0.04;
}

.dark-theme {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --navbar-bg: rgba(15, 23, 42, 0.8);
    --footer-bg: #020617;
    --symbol-opacity: 0.06;
}

/* Background Symbols (Journal/Report Watermark) */
.bg-symbols-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 0;
    opacity: var(--symbol-opacity);
    transform: rotate(-15deg) scale(1.5);
}

.bg-line {
    font-size: 2.5rem;
    font-weight: 800;
    color: #475569; /* Slate 600 */
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    user-select: none;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.bg-line:nth-child(even) {
    color: #94a3b8; /* Slate 400 */
    margin-left: -5rem; /* Stagger effect */
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-secondary);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-brand i {
    color: var(--accent-primary);
    -webkit-text-fill-color: initial;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

/* Main Content area */
#app-content {
    flex: 1;
    margin-top: 80px; /* Space for navbar */
    min-height: calc(100vh - 80px - 200px);
}

/* Views */
.view {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.view.active {
    display: block;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.9); /* Force light text for dark footer */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-col .nav-link {
    display: block;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col .nav-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.disclaimer-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Utility Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* Text Gradients */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .nav-links, .nav-actions {
        display: none;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    #mapping-section .glass-card {
        padding: 1rem;
    }
}

/* ─── INSTITUTIONAL DASHBOARD ─── */
.report-container { padding: 0.5rem 0 2rem; animation: fadeIn 0.4s ease-out; }

.report-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 2rem; padding: 2rem;
    background: rgba(37,99,235,0.05); border: 1px solid rgba(37,99,235,0.15);
    border-radius: var(--radius-lg); position: relative; overflow: hidden;
}
.report-header::before {
    content:''; position: absolute; top:0; left:0; width:4px; height:100%; background: var(--accent-primary);
}
.report-badge {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--accent-secondary); margin-bottom: 0.5rem;
}
.report-title { font-size: 1.85rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text-primary); }
.report-period { color: var(--text-muted); font-size: 0.9rem; }
.report-score-badge {
    text-align: center; border: 1px solid var(--glass-border);
    background: var(--bg-card); border-radius: var(--radius-md); 
    padding: 1.25rem 2rem; min-width: 120px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.kpi-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem; margin-bottom: 2rem;
}
.kpi-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-md); padding: 1.5rem; transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); }
.kpi-icon { color: var(--accent-primary); margin-bottom: 0.75rem; }
.kpi-icon i { width: 22px; height: 22px; }
.kpi-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.kpi-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; margin-bottom: 0.4rem; color: var(--text-primary); }
.kpi-sub { font-size: 0.8rem; color: var(--text-muted); }

.section-header {
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1.25rem; padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.section-header i { width: 20px; height: 20px; color: var(--accent-primary); flex-shrink: 0; }
.section-header h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--text-primary); }

.stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.55rem 0; border-bottom: 1px dashed rgba(0,0,0,0.05); font-size: 0.9rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--text-secondary); }
.stat-val { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-primary); }

.stats-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.charts-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.charts-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.chart-card { padding: 1.5rem; }
.chart-card-full { padding: 1.5rem; margin-bottom: 1.5rem; }

/* Heatmap Grid */
.heatmap-wrapper { overflow-x: auto; padding-bottom: 1rem; margin-top: 0.5rem; }
.heatmap-table { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 0.85rem; }
.heatmap-table th { color: var(--text-muted); font-weight: 600; padding: 0.5rem; text-align: center; font-size: 0.75rem; text-transform: uppercase; }
.hm-cell { padding: 0.75rem 0.5rem; text-align: center; border-radius: 4px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 50px; border: 1px solid rgba(0,0,0,0.02); }
.hm-cell.empty { background: var(--bg-main); border: none; }
.hm-year { font-weight: 700; color: var(--text-primary); padding-right: 1.5rem; text-align: left; }
.hm-ytd { font-weight: 700; text-align: center; background: var(--bg-main); border-radius: 4px; border: 1px solid var(--glass-border); }

.monthly-scroll { max-height: 250px; overflow-y: auto; }
.monthly-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.monthly-table th { color: var(--text-muted); font-weight: 500; padding: 0.4rem 0.6rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.monthly-table td { padding: 0.4rem 0.6rem; border-top: 1px solid rgba(0,0,0,0.04); }

.insights-list { display: flex; flex-direction: column; gap: 0.85rem; }
.insight-item { display: flex; gap: 0.85rem; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; padding: 1rem; background: var(--bg-main); border-radius: var(--radius-md); border: 1px solid var(--glass-border); }

/* Loader Overlay */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--navbar-bg); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(8px); transition: opacity 0.5s;
}
.loader-content { text-align: center; }
.spinner {
    width: 60px; height: 60px; border: 4px solid rgba(37, 99, 235, 0.1);
    border-top-color: var(--accent-primary); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-content h3 { color: var(--text-primary); font-size: 1.5rem; margin-bottom: 0.5rem; }
.loader-content p { color: var(--text-secondary); font-size: 1rem; }

.disclaimer-block {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.25rem; background: rgba(245,158,11,0.05); border: 1px solid rgba(245,158,11,0.15);
    border-radius: var(--radius-md); margin-top: 2rem;
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
}
.disclaimer-block i { color: var(--warning); flex-shrink: 0; width: 22px; height: 22px; }

.report-actions { display: flex; gap: 1rem; justify-content: center; padding: 2rem 0; flex-wrap: wrap; }

@media (max-width: 900px) {
    .stats-2col, .charts-2col, .charts-3col { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .report-header { flex-direction: column; gap: 1.5rem; }
    .report-score-badge { align-self: flex-start; }
}
@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
}

/* Report Navigation & Sections */
.report-nav-wrapper {
    position: sticky;
    top: 70px;
    z-index: 100;
    margin-bottom: 2rem;
    background: var(--bg-main);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}
.report-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-btn {
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.nav-btn:hover {
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.05);
}
.nav-btn.active {
    color: var(--accent-primary);
    background: var(--bg-card);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
}

.report-section-divider {
    padding-top: 4rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}
.section-title {
    margin-bottom: 2.5rem;
}
.section-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.section-title h3 i {
    width: 26px;
    height: 26px;
    color: var(--accent-primary);
}

@media print {
    .report-nav-wrapper { display: none; }
    .report-section-divider { page-break-before: always; border-top: none; padding-top: 0; }
}

/* ─── ARTICLES & MARKETPLACE ─── */
.articles-marketplace {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-primary);
}

.article-card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-card-icon {
    padding: 2.5rem 2rem 1rem;
}

.article-card-icon i {
    width: 40px;
    height: 40px;
}

.article-card-body {
    padding: 1rem 2rem 2rem;
    flex: 1;
}

.article-card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.article-card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-card-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.02);
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.article-card:hover .read-more i {
    transform: translateX(4px);
}

/* ─── ARTICLE DETAIL PAGE ─── */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header-box {
    margin-bottom: 4rem;
    text-align: center;
}

.article-header-box h1 {
    font-size: 3rem;
    margin: 1.5rem 0;
    line-height: 1.1;
}

.article-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.article-section {
    animation: fadeIn 0.6s ease-out;
}

.article-content-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.metrics-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.metric-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
}

.metric-detail-card:hover {
    border-color: var(--accent-primary);
    transform: scale(1.02);
}

.metric-detail-card.danger-border:hover {
    border-color: var(--danger);
}

.metric-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.metric-icon-box i {
    width: 24px;
    height: 24px;
}

.metric-detail-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.metric-def {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.metric-insight {
    font-size: 0.9rem;
    padding: 0.75rem;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    border-left: 3px solid var(--accent-primary);
}

.article-detail h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-detail p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.article-detail ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-detail li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.article-footer-disclaimer {
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .article-header-box h1 { font-size: 2.25rem; }
    .articles-marketplace { gap: 1.5rem; }
}

/* ─── TIME ANALYSIS DASHBOARD ─── */
.time-analysis-view {
    padding: 2rem 0 6rem;
    animation: fadeIn 0.5s ease-out;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.time-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.time-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.time-card-header i {
    color: var(--accent-primary);
    width: 24px;
    height: 24px;
}

/* Heatmap Styles */
.heatmap-wrapper {
    margin-top: 1rem;
    overflow-x: auto;
}

.heatmap-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    font-size: 0.85rem;
}

.heatmap-table th {
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.hm-year {
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    padding-right: 1rem;
}

.hm-cell {
    width: 50px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    transition: transform 0.2s;
    cursor: default;
    border: 1px solid rgba(0,0,0,0.02);
}

.hm-cell:hover {
    transform: scale(1.1);
    z-index: 10;
}

.hm-cell-profit { background: rgba(16, 185, 129, 0.15); color: #059669; }
.hm-cell-profit-high { background: rgba(16, 185, 129, 0.4); color: #065f46; }
.hm-cell-loss { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.hm-cell-loss-high { background: rgba(239, 68, 68, 0.4); color: #991b1b; }
.hm-cell-empty { background: var(--bg-main); color: var(--text-muted); opacity: 0.3; }

.hm-ytd {
    font-weight: 800;
    width: 60px;
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
}

/* Yearly List Styles (Horizontal) */
.yearly-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

/* Session List Styles */
.session-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.session-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.session-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-details h4 {
    font-size: 1rem;
    margin: 0;
}

.session-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.session-stats {
    text-align: right;
}

.session-pnl {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.session-winrate {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Insight Cards */
.insight-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.insight-chip {
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-chip i {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .time-grid { grid-template-columns: 1fr; }
}



