.ratio-hero { text-align:center; margin-bottom:32px; }
.ratio-hero img { margin-bottom:8px; }
.ratio-big { font-family:'JetBrains Mono',monospace; font-size:3rem; font-weight:600; color:var(--accent); line-height:1.1; }
.ratio-big-label { font-size:0.85rem; color:var(--text-tertiary); margin-top:4px; }

.ratio-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:24px; }
.ratio-card + .ratio-card { margin-top:20px; }

/* Chart controls */
.chart-controls { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.range-btns { display:flex; gap:6px; }
.range-btns button {
  background:var(--bg-card); border:1px solid var(--border-color); color:var(--text-secondary);
  padding:6px 14px; border-radius:8px; font-size:0.8rem; font-weight:600; cursor:pointer; transition:all .15s;
}
.range-btns button:hover { border-color:var(--accent); color:var(--accent); }
.range-btns button.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.chart-legend { font-size:0.75rem; color:var(--text-tertiary); display:flex; gap:14px; flex-wrap:wrap; }
.chart-legend span::before { content:''; display:inline-block; width:12px; height:3px; border-radius:2px; margin-right:5px; vertical-align:middle; }
.chart-legend .leg-ratio::before { background:var(--accent); }
.chart-legend .leg-halving::before { background:#f59e0b; border-style:dashed; }
.chart-legend .leg-support::before { background:#ef4444; opacity:.5; }
.chart-legend .leg-resist::before { background:#22c55e; opacity:.5; }

#ratioChart { width:100%; max-height:420px; }

/* Stats grid */
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:0; }
@media(max-width:900px){ .stats-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:480px){ .stats-grid { grid-template-columns:1fr; } }
.stat-card {
  background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; text-align:center;
}
.stat-card .stat-label { font-size:0.75rem; color:var(--text-tertiary); text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; }
.stat-card .stat-value { font-family:'JetBrains Mono',monospace; font-size:1.35rem; font-weight:700; color:var(--text-primary); }
.stat-card .stat-sub { font-size:0.72rem; color:var(--text-tertiary); margin-top:4px; }

/* Cycle table */
.cycle-table { width:100%; border-collapse:collapse; font-size:0.85rem; }
.cycle-table th { text-align:left; padding:10px 12px; border-bottom:2px solid var(--border-color); color:var(--text-tertiary); font-weight:600; font-size:0.75rem; text-transform:uppercase; letter-spacing:.5px; }
.cycle-table td { padding:10px 12px; border-bottom:1px solid var(--border-color); color:var(--text-secondary); }
.cycle-table tr:last-child td { border-bottom:none; }
.cycle-table .phase-bull { color:#22c55e; font-weight:600; }
.cycle-table .phase-bear { color:#ef4444; font-weight:600; }
.cycle-table .phase-halving { color:#f59e0b; font-weight:600; }
.cycle-table .ratio-mono { font-family:'JetBrains Mono',monospace; font-weight:600; }

.seo-text p { color:var(--text-secondary); font-size:0.88rem; line-height:1.7; margin-bottom:12px; }
.seo-text h2 { font-size:1.1rem; margin-bottom:12px; }
.seo-text h3 { font-size:0.95rem; margin:20px 0 8px; color:var(--text-primary); }
.seo-text a { color:var(--accent); }

.internal-links { display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.internal-links a {
  display:inline-flex; align-items:center; gap:6px; padding:10px 18px;
  background:var(--bg-card); border:1px solid var(--border-color); border-radius:10px;
  color:var(--accent); font-size:0.85rem; font-weight:600; text-decoration:none; transition:all .15s;
}
.internal-links a:hover { border-color:var(--accent); background:var(--accent); color:#fff; }

.loading-spinner {
  display:flex; align-items:center; justify-content:center; min-height:300px;
  color:var(--text-tertiary); font-size:0.85rem;
}
.loading-spinner::after {
  content:''; width:24px; height:24px; border:3px solid var(--border-color); border-top-color:var(--accent);
  border-radius:50%; animation:spin .6s linear infinite; margin-left:10px;
}
@keyframes spin { to { transform:rotate(360deg); } }
