* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0a1322;
  color: #e8edf6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
}

/* ---------- header (LSPD navy/gold) ---------- */
header {
  background: linear-gradient(135deg, #0e2240 0%, #132c52 100%);
  border-bottom: 3px solid #b8892e;
  padding: 18px 28px;
  display: flex; align-items: center; gap: 16px;
}
#home-link {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #f0e9d8; border-radius: 8px;
  padding: 8px 14px; font-size: 13px;
  text-decoration: none; flex-shrink: 0;
  transition: background .2s;
}
#home-link:hover { background: rgba(255,255,255,.16); }
.badge {
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8b25e, #9a712a 70%);
  border: 2px solid #e8cd8a;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-weight: bold; color: #1d2a45; font-size: 11px;
  flex-shrink: 0;
  box-shadow: inset 0 0 8px rgba(0,0,0,.25);
}
.badge span { border: 1.5px solid #1d2a45; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
header .titles { flex: 1; min-width: 0; }
header h1 { font-family: Georgia, "Times New Roman", serif; color: #f5efe0; font-size: 24px; }
header p { color: #caa14f; font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; margin-top: 3px; }

/* ---------- layout & cards ---------- */
.wrap {
  max-width: 1280px; margin: 0 auto; padding: 28px 24px 60px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 26px; align-items: start;
}
@media (max-width: 980px) { .wrap { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.preview-col { position: sticky; top: 20px; }
@media (max-width: 980px) { .preview-col { position: static; } }

.card {
  background: #111f36;
  border: 1px solid #1d2f4d;
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
}
.card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px; letter-spacing: .5px;
  border-bottom: 2px solid #caa14f; padding-bottom: 8px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
#nr-wrap { font-family: -apple-system, sans-serif; font-size: 13px; color: #93a2bd; font-weight: 600; }
#s-nr { color: #caa14f; }
.hint { font-size: 12.5px; color: #93a2bd; margin-top: 10px; line-height: 1.5; }

/* ---------- formulier ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label { font-size: 13px; font-weight: 600; }
input, select, textarea {
  background: #0d1a2e;
  border: 1px solid #233856;
  color: #e8edf6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #5b8dd6;
  box-shadow: 0 0 0 3px rgba(91, 141, 214, .2);
}
textarea { resize: vertical; min-height: 70px; line-height: 1.45; }

.subhead {
  font-family: Georgia, serif; font-size: 14px; letter-spacing: .8px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 12px;
}
.subhead::after { content: ""; flex: 1; height: 1px; background: #1d2f4d; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.check input { width: auto; accent-color: #caa14f; cursor: pointer; }

.now-btn {
  background: transparent; border: 1px solid #caa14f; color: #caa14f;
  border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  padding: 1px 8px; margin-left: 6px; cursor: pointer; text-transform: uppercase;
  vertical-align: 1px;
}
.now-btn:hover { background: rgba(202, 161, 79, .15); }

/* ---------- voorbeeld & acties ---------- */
.paper {
  background: #0d1a2e;
  border: 1px solid #233856;
  border-left: 4px solid #b03a2e;
  border-radius: 6px;
  padding: 18px 16px;
  font-family: "SF Mono", "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 200px;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
button.action {
  border-radius: 9px; padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
}
button.action:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(135deg, #b8892e, #caa14f);
  border: 1px solid #b8892e; color: #fffbef;
  flex: 1; min-width: 160px;
}
.btn-gold:hover { filter: brightness(1.07); }
.btn-plain {
  background: #152540; border: 1px solid #2a3f61; color: #e8edf6;
}
.btn-plain:hover { filter: brightness(1.15); }

#toast {
  position: fixed; bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0a1830; color: #f2ecd9; border: 1px solid #caa14f;
  padding: 11px 22px; border-radius: 9px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  box-shadow: 0 6px 24px rgba(0,0,0,.35); z-index: 50;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- foto-lab: tabs & canvas ---------- */
.hidden { display: none !important; }

#tabs { display: flex; gap: 8px; flex-shrink: 0; }
.tab-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #f0e9d8;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.tab-btn:hover { background: rgba(255,255,255,.16); }
.tab-btn.active {
  background: linear-gradient(135deg, #b8892e, #caa14f);
  border-color: #b8892e;
  color: #fffbef;
  font-weight: 700;
}

canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #0d1a2e;
  cursor: grab;
  touch-action: none;
  display: block;
}
canvas.slepen { cursor: grabbing; }

.foto-knoppen { display: flex; align-items: center; gap: 12px; }
.hint-inline { font-size: 12.5px; color: #93a2bd; }
.field.full { grid-column: 1 / -1; }

input[type="range"] {
  padding: 0;
  accent-color: #caa14f;
  background: transparent;
  border: none;
}
input[type="range"]:focus { box-shadow: none; }
