:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --bg-dark: #0f0f12;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --ink: #0f0f12;
  --ink-dim: #52525b;
  --ink-low: #71717a;
  --accent: #6366f1;
  --accent-2: #ec4899;
  --accent-soft: rgba(99, 102, 241, 0.1);
  --gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --good: #10b981;
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Geist", "Inter", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.audit {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gradient);
}
.bar-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-low);
}

.chat {
  flex: 1;
  padding: 28px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.team {
  align-self: center;
  text-align: center;
  max-width: 92%;
  margin-bottom: 4px;
  animation: rise 0.3s ease both;
}
.team-fotos {
  display: inline-flex;
  margin-bottom: 12px;
}
.team-foto {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow: 0 2px 8px -2px rgba(15, 15, 18, 0.2);
}
.team-foto:not(:first-child) {
  margin-left: -16px;
}
.team-regel {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto;
}

.msg {
  max-width: 86%;
  padding: 14px 17px;
  border-radius: var(--radius);
  font-size: 15.5px;
  line-height: 1.55;
  animation: rise 0.28s ease both;
}
.msg.bot {
  align-self: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.msg.user {
  align-self: flex-end;
  color: #fff;
  background: var(--gradient);
  border-bottom-right-radius: 5px;
}
.msg.typing {
  color: var(--ink-low);
  font-style: italic;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dock {
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dock:empty { display: none; }

.opt {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.opt:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label { font-size: 13px; font-weight: 600; color: var(--ink-dim); }
.field input, .field select, .text-in {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  width: 100%;
}
.field input:focus, .text-in:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.row { display: flex; gap: 10px; width: 100%; }
.row .text-in { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--gradient);
  background-size: 200% 100%;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-position 0.4s ease, transform 0.15s ease;
}
.btn:hover { background-position: 100% 50%; transform: translateY(-1px); }
.btn.full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

/* Mini rapport kaart */
.report {
  align-self: stretch;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  animation: rise 0.32s ease both;
}
.report .head {
  background: var(--bg-dark);
  color: #fff;
  padding: 26px 24px;
}
.report .head .uren {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.report .head .sub { color: #a1a1aa; font-size: 15px; margin-top: 6px; }
.report .body { padding: 22px 24px; }
.report h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-low);
  margin-bottom: 12px;
}
.win {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.win:last-of-type { border-bottom: none; }
.win .naam { font-weight: 700; font-size: 15.5px; }
.win .delta { font-size: 13.5px; color: var(--good); font-weight: 600; white-space: nowrap; }
.bonus { font-size: 14px; color: var(--ink-dim); margin-top: 14px; }
.rekensom {
  margin-top: 18px;
  padding: 16px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  line-height: 1.6;
}
.rekensom b { color: var(--accent); }

.foot {
  padding: 10px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-low);
}
.progress { font-weight: 600; }
.foot-note { text-align: right; }

@media (max-width: 600px) {
  .audit { border: none; }
  .msg { max-width: 92%; }
  .foot-note { display: none; }
}
