:root {
  --navy: #14213d;
  --orange: #fca311;
  --bg: #f4f5f7;
  --text: #111827;
  --muted: #6b7280;
  --panel: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1020; --text: #e5e7eb; --muted: #9ca3af; --panel: #151c30; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 480px; margin: 0 auto; padding: 24px 16px 48px; }
.brand { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.brand small { font-size: 14px; color: var(--muted); font-weight: 500; }
.lead, .hint, .note { color: var(--muted); }
.note { font-size: 13px; }

.card {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  margin: 20px 0;
  aspect-ratio: 1.586;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(20, 33, 61, 0.25);
}
.card-top { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900;
}
.balance-label { margin-top: auto; color: var(--orange); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.balance { font-size: 36px; font-weight: 800; }
.number { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.06em; opacity: 0.9; }

.buttons { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 8px 0 16px; }
.btn-slot { min-height: 48px; }
.wallet-link { display: inline-block; line-height: 0; }
.wallet-link img { height: 48px; width: auto; display: block; }

/* Zastępczy przycisk w stylu „Add to Apple Wallet” (czarny, zaokrąglony) */
.apple-text {
  line-height: 1.1;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 8px; border: 1px solid #a6a6a6;
  padding: 6px 18px; min-height: 48px; min-width: 200px;
  display: inline-flex; flex-direction: column; justify-content: center;
}
.apple-small { font-size: 11px; }
.apple-big { font-size: 19px; font-weight: 600; }

.wallet-off {
  min-height: 48px; min-width: 200px; padding: 6px 18px;
  border-radius: 24px; border: 1px dashed var(--muted); color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2;
}
.wallet-off small { font-size: 12px; }

.panel { background: var(--panel); border-radius: 12px; padding: 16px; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.panel h2 { margin: 0; font-size: 16px; }
input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--muted); background: transparent; color: inherit; }
button { font: inherit; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--muted); background: transparent; color: inherit; cursor: pointer; }
button.primary { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 13px; }
