:root {
  --accent: #0a66ff;
  --accent-dark: #0852cc;
  --green: #22c55e;
  --red: #ef4444;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f3f4f6;
  --card-bg: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #d7dbe0;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Telefoon-frame: laat de app eruitzien als een mobiel scherm */
.phone {
  width: 390px;
  max-width: 100%;
  min-height: 700px;
  margin: 24px auto;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Statusbalk */
.statusbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  background: #000;
  color: #fff;
}
.statusbar .icons { display: flex; gap: 6px; }

/* App-topbalk (zwart) */
.topbar {
  background: #000;
  color: #fff;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}
.topbar .menu { font-size: 20px; line-height: 1; cursor: pointer; }
.topbar .title { flex: 1; font-size: 16px; font-weight: 600; text-align: center; }
.topbar .action { font-size: 18px; line-height: 1; cursor: pointer; }
.topbar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); display: inline-block; margin-right: 6px;
}
.topbar .dot.gray { background: #9ca3af; }

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* Formulieren */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fafb;
  outline: none;
}
.field input:focus { border-color: var(--accent); background: #fff; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Statusschermen */
.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.center h1 { font-size: 22px; margin: 0; }
.center p { color: var(--muted); margin: 0; font-size: 15px; }

.spinner {
  width: 48px; height: 48px;
  border: 5px solid #dbeafe;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* NFC-kaartje ("place card on phone") */
.card-box {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  cursor: pointer;
}
.card-box .nfc-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}

/* PIN-toetsenblok */
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.key {
  height: 62px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.key:active { background: #f3f4f6; }
.key.ghost { border: none; background: transparent; }
.key.red { color: var(--red); border-color: transparent; background: #fef2f2; }
.key.confirm { background: var(--accent); color: #fff; border-color: var(--accent); font-size: 26px; }

.pin-dots {
  display: flex; gap: 14px; justify-content: center; margin: 6px 0 24px;
}
.pin-dots span {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--ink); background: transparent;
}
.pin-dots span.filled { background: var(--ink); }

/* Kaartweergave */
.bankcard {
  width: 100%;
  max-width: 320px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e3a8a 0%, #0a1a3a 100%);
  color: #fff;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.bankcard .brand { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.bankcard .chip {
  width: 42px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, #d4b46a, #a8863d);
  margin: 18px 0;
}
.bankcard .number { font-size: 20px; letter-spacing: 3px; font-weight: 600; }
.bankcard .visa {
  position: absolute; right: 20px; bottom: 20px;
  font-style: italic; font-weight: 800; font-size: 22px;
  color: #fff;
}

.tx-row {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tx-row .lbl { font-size: 13px; color: var(--muted); }
.tx-row .val { font-weight: 700; font-size: 16px; }

.check {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  animation: pop 0.35s ease;
}
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint-link { font-size: 13px; color: var(--accent); cursor: pointer; text-decoration: underline; }
