/* Wat doet mijn geld? — ontworpen op een vast canvas van 1920×1080 dat schaalt naar het scherm. */
:root {
  --canvas: #F7F7F5;
  --surface: #FFFFFF;
  --line: #ECECE8;
  --ink: #1C1C1E;
  --ink-2: #3F3F46;
  --muted: #5D5D66;
  --faint: #8A8A93;
  --ai: #29384B;
  --ai-soft: #E9EDF2;
  --shadow: 0 1px 2px rgb(20 20 30 / 0.04), 0 8px 24px -14px rgb(20 20 30 / 0.12);
  --radius: 22px;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  position: absolute;
  left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  padding: 48px 56px 28px;
  display: flex;
  flex-direction: column;
}

/* ---------- kop ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 112px; }
.brand { display: flex; align-items: center; gap: 26px; }
.logo {
  width: 104px; height: 104px; border-radius: 50%;
  background: #FFF6E9;
  display: grid; place-items: center;
}
.logo svg { width: 68px; height: 68px; }
h1 { font-size: 64px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.sub { font-size: 26px; color: var(--muted); margin-top: 10px; }

.legend {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px 26px;
  box-shadow: var(--shadow);
  display: grid; gap: 10px;
  font-size: 20px; color: var(--ink-2);
}
.legend-row { display: flex; align-items: center; gap: 14px; }
.legend b { font-weight: 600; color: var(--ink); }
.lg-solid { stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; }
.lg-dot { stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 8; }

/* ---------- indeling ---------- */
.main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 40px;
  margin-top: 36px;
  min-height: 0;
}
.pots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 28px;
  min-height: 0;
}

/* ---------- potje ---------- */
.pot {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px 18px;
  display: flex; flex-direction: column;
  min-height: 0;
  position: relative;
  transition: box-shadow 0.3s ease;
}
.pot.flash { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.pot-head { display: flex; align-items: center; gap: 18px; }
.pot-icon {
  width: 68px; height: 68px; border-radius: 18px;
  background: var(--soft);
  display: grid; place-items: center;
  font-size: 36px; line-height: 1;
  flex: none;
}
.pot-icon.glyph { font-weight: 700; font-size: 34px; color: var(--ink); }
.pot-head > div:last-child { min-width: 0; }
.pot-name { font-size: 27px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.pot-lesson { font-size: 17px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Eigen aandeel: de naam is zelf de knop om te kiezen */
.pick {
  font-family: inherit; color: var(--ink); cursor: pointer;
  background: var(--soft); border: 0; border-radius: 12px;
  margin: -4px 0 -4px -10px; padding: 4px 10px;
  display: inline-flex; align-items: center; gap: 8px;
}
.pick svg { opacity: 0.55; }

.pot-figures { margin-top: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pot-value { font-size: 58px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pot-delta {
  font-size: 18px; font-weight: 600; color: var(--ink-2);
  background: var(--soft); border-radius: 999px; padding: 5px 12px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pot-real { font-size: 20px; color: var(--muted); margin-top: 10px; font-variant-numeric: tabular-nums; }
.pot-real b { font-weight: 600; color: var(--ink-2); }

.pot-chart { flex: 1; min-height: 0; margin-top: 10px; }
.pot-chart svg { display: block; overflow: visible; }
.ax { font-size: 15px; fill: var(--faint); font-family: var(--font); font-variant-numeric: tabular-nums; }
.grid { stroke: var(--line); stroke-width: 1; }
.grid.start { stroke: #D6D6D0; stroke-dasharray: 3 5; }
.l-val { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.l-real { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 7; opacity: 0.95; }
.dot-now { fill: var(--surface); stroke: var(--accent); stroke-width: 3.5; }

/* ---------- nieuws ---------- */
.news { display: flex; flex-direction: column; min-height: 0; }
.news-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.ai-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600;
  color: var(--ai); background: var(--ai-soft);
  border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.news-list { margin-top: 20px; display: flex; flex-direction: column; gap: 20px; flex: 1; min-height: 0; overflow: hidden; }
.item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px 20px;
  cursor: pointer;
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  background: var(--soft); border-radius: 999px; padding: 4px 11px 4px 9px;
}
.tag .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tag .arrow { font-size: 14px; color: var(--muted); }
.item h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; margin-top: 12px; line-height: 1.2; }
.item p { font-size: 18.5px; line-height: 1.42; color: var(--ink-2); margin-top: 8px; }
.item .meta { font-size: 15px; color: var(--faint); margin-top: 10px; }
.empty {
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  padding: 32px 28px;
  color: var(--muted); font-size: 20px; line-height: 1.45;
}
.empty b { display: block; color: var(--ink); font-size: 22px; margin-bottom: 6px; }
.news-foot { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--faint); font-style: italic; margin-top: 14px; flex: none; }

/* ---------- voetregel ---------- */
.status { height: 30px; margin-top: 18px; display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--faint); }
.sample { font-weight: 600; color: var(--ink-2); background: #F0F0EC; border-radius: 999px; padding: 3px 11px; }

/* ---------- aandeel kiezen ---------- */
.picker {
  position: absolute; inset: 0;
  background: rgb(28 28 30 / 0.28);
  display: grid; place-items: center;
  z-index: 10;
}
.picker[hidden] { display: none; }
.picker-card {
  width: 760px;
  background: var(--surface); border-radius: 26px;
  padding: 34px 36px 28px;
  box-shadow: 0 30px 80px -20px rgb(20 20 30 / 0.35);
  font-family: var(--font);
}
.picker-card h3 { font-size: 30px; font-weight: 700; }
.picker-card > p { font-size: 19px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.picker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.opt {
  font: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  border: 2px solid var(--line); background: var(--surface);
  border-radius: 18px; padding: 14px 16px;
}
.opt.on { border-color: #9D94DA; background: #F2F1FA; }
.opt .e { font-size: 34px; width: 52px; text-align: center; }
.opt b { display: block; font-size: 20px; }
.opt small { display: block; font-size: 16px; color: var(--muted); margin-top: 2px; }
.picker-close {
  margin-top: 22px; font: inherit; font-size: 18px; font-weight: 600;
  border: 0; background: #F0F0EC; color: var(--ink-2);
  border-radius: 999px; padding: 12px 26px; cursor: pointer;
}
