/* ==========================================
   Deep-Sea Mining CCZ Intelligence Report
   "Abyss Blue / Cobalt / Amber Warning"
   ========================================== */

:root {
    --primary-color: #0369a1;
    --secondary-color: #d97706;
    --accent-color: #0284c7;
    --success-color: #059669;
    --warning-color: #f59e0b;
    --danger-color: #991b1b;
    --info-color: #7c3aed;
    --teal-color: #0d9488;
    --abyssal: #020c1b;
    --deep: #0a1628;
    --mid-blue: #0c4a6e;

    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --bg-main: #f0f7ff;
    --bg-secondary: #e0f2fe;
    --bg-card: #ffffff;
    --border: #bae6fd;

    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 250ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); line-height: 1.75; color: var(--text-main); background: var(--bg-main); }

/* LOADING */
.loading-screen { position: fixed; inset: 0; background: linear-gradient(135deg, #020c1b 0%, #0c4a6e 60%, #0369a1 100%); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.7s ease; }
.loading-screen.hidden { opacity: 0; pointer-events: none; }
.loader { text-align: center; }
.loader img { width: 64px; height: 64px; margin-bottom: 1rem; border-radius: 50%; box-shadow: 0 0 40px rgba(3,105,161,0.8); }
.loader .pulse { width: 70px; height: 70px; border-radius: 50%; background: rgba(3,105,161,0.3); animation: pulse 1.5s ease-in-out infinite; margin: 0.5rem auto; }
.loader p { color: #7dd3fc; margin-top: 1rem; font-weight: 600; letter-spacing: 1px; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.25; } }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(240,247,255,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 12px rgba(3,105,161,0.08); }
.header-container { max-width: 1500px; margin: 0 auto; padding: 0.9rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.logo-link { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text-main); font-weight: 800; font-size: 1.1rem; }
.main-nav { display: flex; gap: 1.75rem; }
.nav-link { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.93rem; transition: color var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.reports-link { color: var(--primary-color); font-weight: 700; }
.cta-link { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: white !important; padding: 0.4rem 1.1rem; border-radius: 6px; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); z-index: 101; width: 0; transition: width 0.1s linear; }

/* LAYOUT */
.report-container { display: grid; grid-template-columns: 280px 1fr; max-width: 1500px; margin: 0 auto; gap: 3rem; padding: 2rem; align-items: start; }
@media (max-width: 1024px) { .report-container { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* SIDEBAR */
.sidebar { position: sticky; top: 75px; height: fit-content; max-height: calc(100vh - 90px); overflow-y: auto; }
.sidebar-header { padding: 1rem 1.25rem; background: linear-gradient(135deg, var(--abyssal), var(--primary-color)); border-radius: 10px; margin-bottom: 0.75rem; color: white; }
.sidebar-header h3 { font-size: 0.9rem; font-weight: 700; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.sidebar-nav .nav-link { padding: 0.65rem 1rem; border-radius: 7px; font-size: 0.83rem; font-weight: 500; color: var(--text-secondary); }
.sidebar-nav .nav-link:hover { background: var(--bg-secondary); color: var(--primary-color); }
.sidebar-nav .nav-link.active { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; font-weight: 600; }
.metrics-widget { margin-top: 1.5rem; padding: 1.25rem; background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(3,105,161,0.08); }
.metrics-widget h4 { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.metric-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid #f1f5f9; }
.metric-item:last-child { border-bottom: none; }
.metric-label { font-size: 0.78rem; color: var(--text-secondary); }
.metric-value { font-weight: 700; color: var(--primary-color); font-family: var(--font-mono); font-size: 0.85rem; }
.metric-value.negative { color: var(--danger-color); }
.metric-value.warning { color: var(--warning-color); }

/* MAIN CONTENT */
.main-content { max-width: 920px; min-width: 0; padding-bottom: 4rem; }

/* HERO */
.hero-section { margin-bottom: 4rem; }
.classification-banner { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1.2rem; background: linear-gradient(135deg, var(--abyssal), var(--primary-color)); color: white; border-radius: 6px; margin-bottom: 2rem; font-size: 0.77rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.report-metadata { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.badge { padding: 0.35rem 0.85rem; border-radius: 9999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.sector-badge { background: #dbeafe; color: #1e3a8a; }
.type-badge { background: #ede9fe; color: #4c1d95; }
.priority-badge { background: #fef3c7; color: #78350f; }

.hero-title { margin-bottom: 1.5rem; }
.title-main { display: block; font-size: 2.6rem; font-weight: 900; line-height: 1.1; background: linear-gradient(135deg, var(--abyssal), var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.title-sub { display: block; font-size: 1.25rem; font-weight: 600; color: var(--text-secondary); margin-top: 0.75rem; line-height: 1.45; }

.lead-text { font-size: 1.1rem; line-height: 1.9; color: var(--text-secondary); }

.stats-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin: 2.5rem 0; }
.stat-card { padding: 1.75rem; border-radius: 12px; background: var(--bg-card); border: 2px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(3,105,161,0.15); }
.stat-danger { border-color: #b91c1c; background: linear-gradient(135deg, rgba(185,28,28,0.06), rgba(239,68,68,0.04)); }
.stat-warning { border-color: var(--warning-color); background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(251,191,36,0.04)); }
.stat-info { border-color: var(--primary-color); background: linear-gradient(135deg, rgba(3,105,161,0.08), rgba(14,165,233,0.04)); }
.stat-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.stat-number { font-size: 2.4rem; font-weight: 900; font-family: var(--font-mono); background: linear-gradient(135deg, var(--abyssal), var(--primary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-unit { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin: 0.5rem 0 0.35rem; }
.stat-label { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.sources-banner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; background: var(--bg-secondary); border-radius: 8px; border: 1px solid var(--border); }
.sources-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.source-logos { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.source-tag { font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.65rem; background: white; border: 1px solid var(--border); border-radius: 20px; color: var(--primary-color); }

/* SECTIONS */
.section-main { margin-bottom: 4rem; padding: 2.5rem; background: var(--bg-card); border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 2px 16px rgba(3,105,161,0.06); }
.section-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--bg-secondary); }
.section-title { font-size: 1.6rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 1rem; }
.section-number { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, var(--abyssal), var(--primary-color)); color: white; font-size: 1rem; font-weight: 900; flex-shrink: 0; }
.section-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.reading-time { font-size: 0.8rem; color: var(--text-muted); }
.section-priority { font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.75rem; background: #fee2e2; color: #991b1b; border-radius: 20px; }
.lead-paragraph { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 1.75rem; line-height: 1.85; border-left: 4px solid var(--primary-color); padding-left: 1.25rem; }
.content-block { margin-bottom: 2rem; }
.content-block h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.content-block p { margin-bottom: 1rem; color: var(--text-secondary); }

/* PHYSICS / FORMULA BOX */
.physics-box { background: linear-gradient(135deg, var(--abyssal), var(--deep)); color: #e2e8f0; border-radius: 10px; padding: 1.75rem; margin: 1.5rem 0; border: 1px solid rgba(3,105,161,0.3); }
.physics-box h4 { color: #7dd3fc; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; letter-spacing: 0.5px; }
.formula-line { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.93rem; line-height: 1.7; }
.formula-line:last-of-type { border-bottom: none; }
.formula-result { margin-top: 1rem; padding: 1rem; background: rgba(3,105,161,0.2); border-left: 4px solid #38bdf8; border-radius: 4px; font-weight: 600; font-size: 0.92rem; color: #bae6fd; }

/* WARNING / SUCCESS BLOCKS */
.warning-block { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid var(--warning-color); border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.danger-block { background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #b91c1c; border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.success-block { background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 4px solid #059669; border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.highlight-block { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; border-left: 4px solid var(--primary-color); border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }

/* OLYMPUS BOX (exec summary) */
.olympus-box { background: linear-gradient(135deg, var(--abyssal) 0%, #0c2a4a 100%); color: #e2e8f0; border-radius: 14px; padding: 2.5rem; margin-bottom: 3rem; border: 1px solid rgba(3,105,161,0.4); box-shadow: 0 8px 32px rgba(3,105,161,0.2); }
.ai-summary-box { background: rgba(3,105,161,0.15); border: 1px solid rgba(3,105,161,0.3); border-radius: 10px; padding: 1.75rem; margin-bottom: 1.5rem; }
.ai-summary-box h3 { color: #7dd3fc; font-size: 1.1rem; margin-bottom: 1rem; }
.ai-summary-box p { color: #cbd5e1; line-height: 1.85; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 0.6rem 0; padding-left: 1.75rem; position: relative; font-size: 0.93rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: #38bdf8; font-weight: 700; }

/* TABLES */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border-radius: 10px; border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table thead { background: linear-gradient(135deg, var(--abyssal), var(--primary-color)); color: white; }
.data-table th { padding: 1rem; text-align: left; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td { padding: 0.9rem 1rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: var(--text-secondary); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-secondary); }
.cell-green { color: #059669; font-weight: 700; }
.cell-red { color: #b91c1c; font-weight: 700; }
.cell-amber { color: #d97706; font-weight: 700; }
.cell-blue { color: var(--primary-color); font-weight: 700; }
.risk-high { background: #fef2f2; color: #991b1b; font-weight: 700; text-align: center; border-radius: 4px; }
.risk-low { background: #f0fdf4; color: #065f46; font-weight: 700; text-align: center; border-radius: 4px; }
.impact-severe { color: #7c3aed; font-weight: 600; }

/* DECISION MATRIX */
.decision-matrix { overflow-x: auto; margin: 1.5rem 0; }
.decision-matrix table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.decision-matrix thead { background: linear-gradient(135deg, var(--abyssal), var(--deep)); color: white; }
.decision-matrix th { padding: 0.85rem 1rem; text-align: left; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.decision-matrix td { padding: 0.8rem 1rem; border-bottom: 1px solid #e2e8f0; font-size: 0.85rem; color: var(--text-secondary); vertical-align: top; }

/* CHARTS */
.chart-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; margin: 2rem 0; box-shadow: 0 2px 12px rgba(3,105,161,0.06); }
.chart-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.35rem; flex-wrap: wrap; }
.chart-icon { font-size: 1.5rem; }
.chart-header h4 { font-size: 1.05rem; font-weight: 700; color: var(--text-main); }
.chart-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.chart-body canvas { max-width: 100%; }
.chart-footer { font-size: 0.77rem; color: var(--text-muted); margin-top: 1rem; border-top: 1px solid #f1f5f9; padding-top: 0.75rem; }

/* TIMELINE */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary-color), var(--secondary-color)); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.4rem; top: 0.4rem; width: 14px; height: 14px; border-radius: 50%; background: var(--primary-color); border: 2px solid white; box-shadow: 0 0 0 3px var(--primary-color); }
.timeline-item.critical::before { background: #b91c1c; box-shadow: 0 0 0 3px #b91c1c; }
.timeline-date { font-size: 0.8rem; font-weight: 700; color: var(--primary-color); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.35rem; }
.timeline-item.critical .timeline-date { color: #b91c1c; }
.timeline-content h4 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; }
.timeline-content p { font-size: 0.9rem; color: var(--text-secondary); }

/* WINNER CARDS */
.winner-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.winner-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; border-top: 3px solid var(--primary-color); box-shadow: 0 2px 8px rgba(3,105,161,0.06); transition: transform var(--transition), box-shadow var(--transition); }
.winner-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(3,105,161,0.12); }
.winner-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; }
.winner-sector { font-size: 0.75rem; font-weight: 700; color: var(--primary-color); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; }
.winner-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1rem; }
.winner-ticker { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; background: #dbeafe; color: #1e40af; border-radius: 4px; margin: 0.2rem; font-family: var(--font-mono); }

/* SPONSORSHIP */
.sponsorship-banner { background: linear-gradient(135deg, var(--abyssal), var(--deep)); border-radius: 14px; margin-bottom: 3rem; overflow: hidden; }
.sp-bar { height: 4px; background: linear-gradient(90deg, #d97706, #3b82f6, #0369a1); }
.sp-body { display: flex; align-items: center; gap: 2rem; padding: 1.75rem 2rem; flex-wrap: wrap; }
.sp-text-col { flex: 1; min-width: 220px; }
.sp-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #d97706; margin-bottom: 0.35rem; }
.sp-hl { font-size: 1.2rem; font-weight: 800; color: white; margin-bottom: 0.5rem; }
.sp-copy { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.sp-rule { width: 1px; height: 80px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.sp-cta-wrap { text-align: center; min-width: 140px; }
.sp-icon-top { color: #d97706; font-size: 1.5rem; margin-bottom: 0.75rem; }
.sp-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: linear-gradient(135deg, #d97706, #f59e0b); color: var(--abyssal); font-weight: 800; font-size: 0.88rem; border-radius: 8px; text-decoration: none; transition: all var(--transition); }
.sp-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217,119,6,0.4); }
.sp-footnote { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 0.5rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-icon { color: var(--primary-color); font-size: 1.25rem; flex-shrink: 0; transition: transform var(--transition); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 800px; padding: 0 1.5rem 1.25rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.75; }

/* DATA SOURCES */
.data-sources-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.data-sources-section li { font-size: 0.85rem; color: var(--text-secondary); padding-left: 1.25rem; position: relative; }
.data-sources-section li::before { content: '→'; position: absolute; left: 0; color: var(--primary-color); font-weight: 700; }
.data-sources-section a { color: var(--primary-color); text-decoration: none; }
.data-sources-section a:hover { text-decoration: underline; }

/* RELATED */
.related-reports { max-width: 1500px; margin: 0 auto; padding: 3rem 2rem; }
.related-reports h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 2rem; color: var(--text-main); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-decoration: none; color: inherit; transition: all var(--transition); display: block; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(3,105,161,0.1); border-color: var(--primary-color); }
.related-card-badge { font-size: 0.7rem; font-weight: 700; color: var(--primary-color); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.related-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; line-height: 1.4; }
.related-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

/* FOOTER */
.report-footer { background: var(--abyssal); color: rgba(255,255,255,0.6); padding: 2.5rem 2rem; }
.footer-content { max-width: 1500px; margin: 0 auto; text-align: center; font-size: 0.88rem; }
.footer-content a { color: #7dd3fc; }

/* WASTE VIZ */
.waste-viz { background: var(--bg-secondary); border-radius: 10px; padding: 1.5rem; margin: 1.5rem 0; }
.waste-viz h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-main); margin-bottom: 1.25rem; }
.waste-bar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.85rem; }
.waste-bar-label { width: 200px; font-size: 0.8rem; color: var(--text-secondary); text-align: right; flex-shrink: 0; }
.waste-bar-track { flex: 1; background: #e2e8f0; border-radius: 6px; height: 28px; overflow: hidden; }
.waste-bar-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding-right: 0.75rem; font-size: 0.78rem; font-weight: 700; color: white; transition: width 1s ease; }
.waste-bar-fill.nodules { background: linear-gradient(90deg, #0369a1, #0ea5e9); }
.waste-bar-fill.cobalt { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.waste-bar-fill.nickel { background: linear-gradient(90deg, #059669, #34d399); }
.waste-bar-fill.manganese { background: linear-gradient(90deg, #d97706, #fbbf24); }
.waste-bar-value { width: 80px; font-size: 0.82rem; font-weight: 700; color: var(--primary-color); font-family: var(--font-mono); }

/* CALCULATOR */
.calculator-section { background: linear-gradient(135deg, rgba(3,105,161,0.04), rgba(14,165,233,0.08)); border: 1px solid rgba(3,105,161,0.2); border-radius: 12px; padding: 2rem; margin-top: 2rem; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; margin-bottom: 1.75rem; }
.calc-label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 0.5rem; }
.calc-input, .calc-select { width: 100%; padding: 0.8rem; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--text-main); font-family: var(--font-mono); font-size: 1rem; transition: border-color var(--transition); }
.calc-input:focus, .calc-select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(3,105,161,0.1); }
.calc-result { background: linear-gradient(135deg, var(--abyssal), var(--deep)); border-radius: 10px; padding: 1.5rem; color: white; }
.calc-result-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: #7dd3fc; margin-bottom: 0.35rem; font-weight: 700; }
.calc-result-value { font-size: 2.6rem; font-weight: 900; font-family: var(--font-mono); color: #38bdf8; }
.calc-result-sub { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-top: 0.4rem; }
/* INTERACTIVE CCZ MAP */
.map-container {
    position: relative;
    width: 100%;
    background: #020c1b;
    border-radius: 12px;
    border: 1px solid rgba(3,105,161,0.3);
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.map-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #020c1b, #0c2a4a);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.map-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.map-legend {
    display: flex;
    gap: 1.5rem;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 600;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.legend-dot.china { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.legend-dot.usa { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.legend-dot.eu { background: #10b981; box-shadow: 0 0 8px #10b981; }

.map-body {
    position: relative;
    width: 100%;
    height: 450px;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 Q25,60 50,50 T100,50" fill="none" stroke="rgba(3,105,161,0.2)" stroke-width="0.5"/><path d="M0,25 Q25,35 50,25 T100,25" fill="none" stroke="rgba(3,105,161,0.2)" stroke-width="0.5"/><path d="M0,75 Q25,85 50,75 T100,75" fill="none" stroke="rgba(3,105,161,0.2)" stroke-width="0.5"/></svg>');
    background-size: cover;
    background-color: #03142e;
    border-radius: 0 0 12px 12px;
}

.map-zone {
    position: absolute;
    border: 2px dashed rgba(255,255,255,0.15);
    background: rgba(3,105,161,0.1);
    top: 20%;
    left: 15%;
    width: 70%;
    height: 60%;
    border-radius: 30% 70% 50% 50% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 4px;
    pointer-events: none;
}

.contract-node {
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border: 2px solid;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contract-node::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}
.contract-node:hover {
    transform: scale(1.5);
    z-index: 20;
}
.node-china { border-color: #ef4444; background: rgba(239,68,68,0.2); }
.node-china::after { box-shadow: 0 0 15px #ef4444; animation-delay: 0s; }
.node-usa { border-color: #3b82f6; background: rgba(59,130,246,0.2); }
.node-usa::after { box-shadow: 0 0 15px #3b82f6; animation-delay: 0.5s; }
.node-eu { border-color: #10b981; background: rgba(16,185,129,0.2); }
.node-eu::after { box-shadow: 0 0 15px #10b981; animation-delay: 1s; }

.map-tooltip {
    position: absolute;
    background: rgba(2,12,27,0.95);
    border: 1px solid #38bdf8;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    width: 260px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 30;
    transform: translate(-50%, -120%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.contract-node:hover .map-tooltip {
    opacity: 1;
}
.map-tooltip h5 { font-size: 0.9rem; margin-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.25rem; }
.map-tooltip p { font-size: 0.78rem; color: #cbd5e1; margin-bottom: 0.3rem; line-height: 1.4; }
.map-tooltip .metric { font-family: var(--font-mono); font-weight: 700; color: #7dd3fc; }

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ENHANCED TIMELINE */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin-top: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0369a1 0%, #d97706 50%, #991b1b 100%);
    border-radius: 4px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(3,105,161,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(3,105,161,0.1);
    border-color: #38bdf8;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0369a1;
    border: 4px solid #f0f7ff;
    box-shadow: 0 0 0 2px #0369a1;
    z-index: 2;
    transition: all 0.3s;
}
.timeline-item:hover::before {
    background: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56,189,248,0.4);
}
.timeline-item.critical::before {
    background: #b91c1c;
    box-shadow: 0 0 0 2px #b91c1c;
}
.timeline-item.critical:hover::before {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.4);
}
.timeline-item.critical {
    border-left: 4px solid #b91c1c;
}
.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.timeline-item.critical .timeline-date {
    background: #fee2e2;
    color: #b91c1c;
}
.timeline-content h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}
.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
