/* Zákaznický web modulu Věrnostní karty – stejné tokeny jako eet-kasa.cz */
:root {
  --counter: #edf1f4; --counter-2: #e2e8ed; --ink: #0f1e2a; --ink-2: #33475a; --muted: #5b6b76; --line: #cfd8df;
  --paper: #fffdf7; --stamp: #c8322b; --stamp-2: #a4261f; --teal: #0f7b75; --teal-2: #0b5f5a; --ok: #1a7f3c;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 760px; --r: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--counter); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; }
h2 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; } .muted { color: var(--muted); } .mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow--light { color: #b8c7d1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(15,123,117,.18); }

.top { background: var(--ink); color: #fff; }
.top__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; }
.brand { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 8px; }
.brand__mark { color: #f6c343; }
.nav { display: flex; gap: 16px; align-items: center; font-size: .95rem; }
.nav a { color: #d9e2e8; text-decoration: none; } .nav a:hover { color: #fff; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; color: #d9e2e8; font: inherit; cursor: pointer; padding: 0; } .linkbtn:hover { color: #fff; }
.main { flex: 1; padding: 26px 0 40px; }
.foot { background: var(--counter-2); color: var(--muted); font-size: .85rem; padding: 18px 0; margin-top: 30px; }
.foot p { margin: 0 0 6px; }

.hero { padding: 6px 0 18px; } .hero--small { padding-bottom: 8px; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 12px; } .crumbs a { color: var(--muted); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 14px; margin: 0 0 18px; box-shadow: 0 10px 30px -24px rgba(15,30,42,.35); }
.card--center { text-align: center; padding: 34px 22px 26px; }
.card--danger { border-color: #f0c9c6; }
.big-icon { font-size: 2.6rem; margin-bottom: 8px; }
.flash { border-radius: var(--r); padding: 12px 16px; margin: 0 0 16px; background: #fff; border: 1px solid var(--line); }
.flash--success { border-color: #b7dfc3; background: #eefbf2; color: #14532d; }
.flash--error, .flash--warning { border-color: #f3c1bd; background: #fdf1f0; color: #7f1d1d; }

.form label { display: block; font-weight: 600; font-size: .95rem; margin: 12px 0 6px; }
.form input[type="text"], .form input[type="email"] { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.form input:disabled { background: var(--counter); color: var(--muted); }
.form .row { display: flex; gap: 10px; flex-wrap: wrap; } .form .row input { flex: 1; min-width: 200px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .92rem !important; line-height: 1.45; }
.check input { margin-top: 5px; }
.cf-turnstile { margin: 12px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: inherit; font-weight: 600; padding: 12px 20px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--stamp); color: #fff; } .btn--primary:hover { background: var(--stamp-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); } .btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--danger { background: #fff; color: var(--stamp); border-color: var(--stamp); } .btn--danger:hover { background: var(--stamp); color: #fff; }

/* karta s QR */
.vcard { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-2) 100%); color: #fff; border-radius: 18px; padding: 22px 22px 18px; margin: 0 0 18px; box-shadow: 0 18px 40px -22px rgba(15,123,117,.7); text-align: center; }
.vcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; text-align: left; }
.vcard__head h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0; color: #fff; }
.vcard__addr { color: #cfe6e4; font-size: .9rem; margin: 4px 0 0; }
.vcard__points { text-align: right; white-space: nowrap; }
.vcard__points .n { display: block; font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.vcard__points .l { color: #cfe6e4; font-size: .85rem; }
.vcard__qr { display: inline-block; background: #fff; padding: 12px; border-radius: 14px; margin: 18px auto 10px; }
.vcard__qr canvas { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.vcard__ean { display: inline-block; background: #fff; padding: 10px 14px 6px; border-radius: 10px; margin: 6px auto 4px; }
.vcard__ean canvas { display: block; width: 240px; height: 84px; }
.vcard__eantext { font-family: var(--mono); font-size: .95rem; letter-spacing: .08em; margin: 0 0 10px; color: #e3f1f0; } .vcard__eantext span { display: block; font-family: var(--body); letter-spacing: 0; font-size: .8rem; color: #cfe6e4; }
.vcard__code { font-family: var(--mono); font-weight: 500; font-size: 1.35rem; letter-spacing: .12em; margin: 0 0 6px; }
.vcard__hint { color: #e3f1f0; font-size: .92rem; max-width: 46ch; margin: 0 auto 8px; }
.vcard__bonus { background: rgba(255,255,255,.14); display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .92rem; margin: 4px 0 8px; }
.vcard__wallet { margin: 10px 0 0; }
.gwallet { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; font-weight: 600; padding: 11px 20px 11px 14px; border-radius: 999px; border: 1px solid #555; font-size: .98rem; }
.gwallet:hover { background: #222; }
.gwallet__g { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #4285f4; font-family: var(--display); font-weight: 800; }

/* provozovny */
.shops { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 18px; }
.shop { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); transition: transform .12s ease, border-color .15s ease; }
.shop:hover { transform: translateY(-2px); border-color: var(--teal); }
.shop--off { opacity: .6; }
.shop__name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.shop__addr { color: var(--muted); font-size: .9rem; }
.shop__points { margin-top: 8px; font-size: 1.05rem; } .shop__points b { font-family: var(--display); font-size: 1.8rem; color: var(--teal); }
.shop__meta { color: var(--muted); font-size: .85rem; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0 0 18px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi .l { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi .n { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; color: var(--teal); }
.kpi .s { font-size: .85rem; color: var(--muted); }

/* odměny a historie */
.rewards { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.reward { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.reward--ok { border-color: #b7dfc3; background: #f3fbf5; }
.reward__n { font-weight: 600; } .reward__n small, .reward__p small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.reward__p { text-align: right; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.reward--ok .reward__p small { color: var(--ok); }
.hist { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hist td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hist td small { display: block; color: var(--muted); font-size: .82rem; }
.hist__d { white-space: nowrap; color: var(--muted); font-size: .85rem; width: 1%; }
.hist__p { text-align: right; white-space: nowrap; font-weight: 700; width: 1%; } .hist__p.pos { color: var(--ok); } .hist__p.neg { color: var(--stamp); }
.hist__b { text-align: right; white-space: nowrap; color: var(--muted); width: 1%; }
@media (max-width: 560px) { .vcard__head { flex-direction: column; } .vcard__points { text-align: left; } .hist__b { display: none; } .nav { gap: 10px; font-size: .88rem; } }
