@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red-dark: #7A1620;
  --red: #C1272D;
  --red-bright: #E63946;
  --cream: #FFF6EE;
  --ink: #2B1013;
  --gold: #E8B44A;
  --line: rgba(255, 246, 238, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--red);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 64px;
}

.wrap {
  width: 100%;
  max-width: 460px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand-sub {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-top: 2px;
}

.lang-toggle {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.lang-toggle button {
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--cream);
  color: var(--red);
  border-color: var(--cream);
}

h1 {
  font-family: 'Anton', sans-serif;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.lede {
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.92;
  margin: 0 0 28px;
}

.card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 12px;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.amount-chip {
  border: 2px solid rgba(193, 39, 45, 0.25);
  background: #fff;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.amount-chip .num {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  display: block;
  color: var(--ink);
}

.amount-chip.selected {
  border-color: var(--red);
  background: rgba(193, 39, 45, 0.08);
}

.custom-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.custom-amount input {
  flex: 1;
  border: 2px solid rgba(193, 39, 45, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}

label.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  margin: 14px 0 6px;
}

input[type="text"], input[type="tel"] {
  width: 100%;
  border: 2px solid rgba(193, 39, 45, 0.2);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
}

input:focus { outline: 2px solid var(--red); outline-offset: 1px; }

#paypal-container, #card-container {
  margin-top: 18px;
}

.fine-print {
  font-size: 11.5px;
  opacity: 0.75;
  text-align: center;
  margin-top: 24px;
  line-height: 1.5;
}

/* --- success state --- */
.success-card {
  text-align: center;
}

.voucher-code {
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--red);
  margin: 10px 0 18px;
}

.qr-box {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  display: inline-block;
  margin-bottom: 18px;
}

.qr-box img { display: block; width: 180px; height: 180px; }

.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--red);
  color: var(--cream);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn.secondary {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.hidden { display: none !important; }

/* --- admin --- */
.admin-shell { max-width: 420px; }

#reader {
  border-radius: 16px;
  overflow: hidden;
}

.feedback-banner {
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  font-weight: 700;
  text-align: center;
}

.feedback-banner.ok { background: #1e7e34; color: #fff; }
.feedback-banner.err { background: #b02a2a; color: #fff; }

.manual-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.manual-row input { flex: 1; }

.voucher-log {
  margin-top: 22px;
  font-size: 13px;
}

.voucher-log .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(43, 16, 19, 0.1);
}
