* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0d0d1a; color: #e0e0e0; font-family: 'Segoe UI', sans-serif; }
h1 { text-align: center; padding: 24px 16px 8px; font-size: 1.6rem; color: #f7931a; }
.subtitle { text-align: center; color: #888; font-size: 0.85rem; margin-bottom: 16px; }
#chart-container { position: relative; width: 95%; max-width: 1200px; margin: 0 auto; background: #13131f; border-radius: 12px; padding: 16px; height: 480px; }
canvas { cursor: crosshair; }
.controls-legend-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 20px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-start; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #aaa; }
.controls { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.btn { background: #1e1e2e; border: 1px solid #333; color: #ccc; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.82rem; transition: all 0.2s; }
.btn:hover, .btn.active { background: #f7931a; color: #000; border-color: #f7931a; }
#tooltip { position: fixed; background: #1a1a2e; border: 1px solid #444; border-radius: 8px; padding: 10px 14px; font-size: 0.82rem; pointer-events: none; display: none; z-index: 100; min-width: 190px; line-height: 1.8; }
#tooltip .t-date { color: #aaa; font-size: 0.78rem; margin-bottom: 4px; border-bottom: 1px solid #333; padding-bottom: 4px; }
#tooltip .t-hist { color: #f7931a; }
#tooltip .t-fore { color: #4a9eff; }
.formula-box { background: #13131f; border: 1px solid #2a2a3f; border-radius: 10px; padding: 16px 24px; max-width: 760px; margin: 0 auto 20px; font-size: 0.82rem; color: #aaa; line-height: 1.9; }
.formula-box h3 { color: #f7931a; margin-bottom: 8px; font-size: 0.9rem; }
.formula-box table { width: 100%; border-collapse: collapse; }
.formula-box td { padding: 3px 10px; }
.formula-box td:first-child { color: #888; }
.formula-box td:last-child { color: #fff; text-align: right; }
.hl { color: #4a9eff !important; font-weight: bold; }
.cycle-table { width: 95%; max-width: 1200px; margin: 0 auto 24px; border-collapse: collapse; font-size: 0.8rem; }
.cycle-table th { background: #1a1a2e; color: #f7931a; padding: 10px 12px; text-align: center; border-bottom: 2px solid #333; white-space: nowrap; }
.cycle-table td { padding: 8px 12px; text-align: center; border-bottom: 1px solid #1e1e2e; color: #ccc; }
.cycle-table tr.forecast td { color: #5588aa; font-style: italic; }
.cycle-table tr.forecast td.num { color: #4a9eff; font-style: normal; font-weight: bold; }
.cycle-table tr:hover td { background: #1a1a2e; }
.cycle-table td.num { color: #888; text-align: center; font-weight: bold; font-size: 1rem; }
.pos { color: #4aff88 !important; font-style: normal !important; }
.neg { color: #ff6b6b !important; font-style: normal !important; }
.neu { color: #f7931a !important; font-style: normal !important; }
h2.section { text-align: center; color: #ccc; font-size: 1rem; font-weight: normal; padding: 16px 0 8px; letter-spacing: 1px; text-transform: uppercase; }
.calc-section { padding: 20px 16px; max-width: 1200px; margin: 0 auto; }
.calc-section .calc-box { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.calc-section .calc-box h3 { display: none; }
.calc-input-group { flex: 0 1 auto; min-width: 200px; }
.calc-input-group label { display: block; color: #888; font-size: 0.75rem; margin-bottom: 4px; }
.calc-input-group input, .calc-input-group select { width: 100%; padding: 8px; background: #1a1a2e; border: 1px solid #2a2a3f; border-radius: 6px; color: #ccc; font-size: 0.82rem; }
.calc-input-group input:focus, .calc-input-group select:focus { outline: none; border-color: #f7931a; }
.calc-btn { padding: 8px 20px; background: #f7931a; border: none; border-radius: 6px; color: #000; font-weight: bold; cursor: pointer; font-size: 0.9rem; transition: 0.2s; white-space: nowrap; }
.calc-btn:hover { background: #ffb84d; }
.insights-wrapper { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; padding: 20px 16px; max-width: 1200px; margin: 0 auto; }
.formula-container { flex: 1; min-width: 300px; }
.formula-box { background: #13131f; border: 1px solid #2a2a3f; border-radius: 10px; padding: 16px 24px; font-size: 0.82rem; color: #aaa; line-height: 1.9; }
#stats { flex: 1; min-width: 300px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.stat-card { background: #13131f; border: 1px solid #2a2a3f; border-radius: 10px; padding: 14px 20px; min-width: 160px; text-align: center; flex: 1; }
.stat-label { font-size: 0.75rem; color: #888; margin-bottom: 4px; }
.stat-value { font-size: 1.15rem; font-weight: bold; color: #f7931a; }
.earnings-table-inline { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.75rem; }
.earnings-table-inline th { background: #1a1a2e; color: #f7931a; padding: 10px; text-align: center; border-bottom: 2px solid #333; }
.earnings-table-inline td { padding: 8px 10px; text-align: center; border-bottom: 1px solid #1e1e2e; color: #ccc; }
.earnings-table-inline tr:hover td { background: #1a1a2e; }
.earnings-table-inline .positive { color: #4aff88; }
.earnings-table-inline .negative { color: #ff6b6b; }
#earnings-result { display: none; margin-top: 16px; }



