/* Thème sombre façon pharos.watch : toutes les couleurs sont ici. */
:root {
  --bg: #0b0e14;
  --surface: #121722;
  --surface-2: #19202e;
  --border: #232b3b;
  --text: #e6e9ef;
  --muted: #8a93a6;
  --accent: #4ade80;
  --usd: #60a5fa;
  --eur: #c084fc;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.brand { font-family: var(--mono); font-weight: 700; letter-spacing: .5px; }
.dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.nav a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.nav a.active { color: var(--text); }

.container { max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; }

h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.card .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.card .value { font-family: var(--mono); font-size: 22px; margin-top: 4px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  color: var(--muted); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: .6px; white-space: nowrap;
}
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: none; }

.symbol { font-family: var(--mono); font-weight: 700; }
.fullname { color: var(--muted); font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  white-space: nowrap;
}

.ccy { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.ccy.USD { color: var(--usd); }
.ccy.EUR { color: var(--eur); }

.error { color: #f87171; padding: 16px; }
