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

:root {
  --ink: #14181f;
  --text: #2b3038;
  --muted: #6b7480;
  --line: #e6e8ec;
  --line-strong: #d6d9de;
  --bg: #f6f7f9;
  --white: #ffffff;
  --accent: #1f6feb;
  --accent-dark: #1a5fd0;
  --accent-dim: #eef4fe;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-name { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.2px; }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-secure { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.header-secure .lock { font-size: 12px; }

/* Language switcher */
.lang-switch { display: flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.lang-btn {
  background: transparent;
  border: none;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-btn:first-child { border-left: none; }
.lang-btn:hover { color: var(--ink); background: var(--bg); }
.lang-btn.active { background: var(--ink); color: #fff; }

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px;
}

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 1px 2px rgba(20,24,31,.04), 0 8px 28px rgba(20,24,31,.06);
}

/* Invoice notice */
.invoice-notice {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 26px;
}
.invoice-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin-bottom: 8px;
}
.invoice-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.invoice-ref { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.invoice-amount { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.invoice-due { font-size: 12px; color: var(--muted); margin-top: 8px; }
.invoice-due strong { color: #c0392b; font-weight: 600; }

h1 { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.2px; margin-bottom: 6px; }
.subtitle { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 24px; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-group label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input::placeholder { color: #aeb4bd; }
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,111,235,.14);
}

/* Button */
.btn {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-dark); box-shadow: 0 4px 14px rgba(31,111,235,.28); }
.btn:active { background: #164fb0; }

/* Payment method selector */
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pay-method:hover { border-color: var(--accent); }
.pay-method.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.pm-mark {
  width: 34px; height: 24px;
  flex-shrink: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.pm-bancontact { background: #005498; }
.pm-card { background: var(--bg); }
.pm-paypal { background: #003087; font-style: italic; letter-spacing: -.5px; }
.pm-sepa { background: var(--bg); }
.pm-name { line-height: 1.2; }

/* Helper text */
.help-text { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; }
.help-text a { color: var(--accent); text-decoration: none; }
.help-text a:hover { text-decoration: underline; }
.secured-line .brands { display: block; margin-top: 4px; color: #9aa1ab; letter-spacing: .3px; }

/* Spinner */
.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 70px 20px;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 18px 20px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .separator { margin: 0 8px; color: var(--line-strong); }

@media (max-width: 480px) {
  .card { padding: 26px 22px; }
  .pay-methods { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; gap: 12px; padding: 14px 18px; }
  .header-secure { display: none; }
  .main { padding: 28px 16px; }
}
