/* Veřejné stránky věrnostního klubu (klub.kasaplus.cz) — mobilní design dle mockupu:
   fialový gradient header, bílá karta, statistiky, razítková karta, aktivita. */
* { box-sizing: border-box; }
body.club {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(160deg, #ede9fe 0%, #f5f3ff 40%, #faf5ff 100%);
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  padding: 1.25rem;
}
.club-card {
  width: 100%;
  max-width: 440px;
  margin: 1.5rem 0;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(124, 58, 237, .18);
}

/* ── Header (fialový gradient) ─────────────────────────────────────────── */
.club-header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  padding: 1.6rem 1.5rem 1.4rem;
  text-align: center;
}
.club-header.compact { padding: 1.2rem 1.5rem; text-align: left; }
.club-logo {
  margin: 0 auto .9rem;
  display: flex; align-items: center; justify-content: center;
}
.club-logo img { height: 120px; width: auto; max-width: 94%; object-fit: contain; display: block; }
.club-logo--ph {
  width: 72px; height: 72px; border-radius: 16px; background: rgba(255,255,255,.18);
  font-size: .7rem; opacity: .8; line-height: 1.1; padding: 4px;
}
.club-header h1 { margin: 0; font-size: 1.4rem; font-weight: 800; }
.club-sub { margin-top: .25rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.club-welcome { font-size: 1.5rem; font-weight: 800; margin: .2rem 0 0; }
.club-tier {
  display: inline-block; margin-top: .5rem; padding: .25rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.22); color: #fff; font-weight: 700; font-size: .82rem;
}
.club-head-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.club-head-row .club-logo { margin: 0; }
.club-head-row .club-logo img { height: 56px; }

/* ── Body ──────────────────────────────────────────────────────────────── */
.club-body { padding: 1.5rem; }
.club-desc { color: #4b5563; text-align: center; margin: 0 0 1.25rem; line-height: 1.45; }
.muted { color: #9ca3af; text-align: center; }

/* Pole formuláře s ikonou */
.club-field { margin-bottom: 1rem; }
.club-field > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.club-field > label small { color: #9ca3af; font-weight: 400; }
.club-input { position: relative; }
.club-input svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: #a78bfa; }
.club-input input {
  width: 100%; padding: .75rem .85rem .75rem 2.4rem; font-size: 1rem;
  border: 1.5px solid #e5e7eb; border-radius: 12px; outline: none; background: #fafafa;
}
.club-input input:focus { border-color: #7c3aed; background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.club-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: #4b5563; margin: .25rem 0 1.1rem; }
.club-consent input { margin-top: .2rem; }
.club-consent a { color: #7c3aed; }

.club-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  padding: .9rem 1rem; font-size: 1.05rem; font-weight: 700; border: none; border-radius: 14px;
  cursor: pointer; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}
.club-btn:hover { filter: brightness(1.04); }
.club-btn--ghost { background: #f3f4f6; color: #4b5563; }
.club-error { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: .6rem .8rem; margin: 0 0 1rem; text-align: center; font-size: .9rem; }

/* ── Statistiky (konto) ───────────────────────────────────────────────── */
.club-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0 0 1.25rem; }
.stat-box { background: #f5f3ff; border: 1px solid #ede9fe; border-radius: 14px; padding: .9rem; text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: #7c3aed; line-height: 1.1; }
.stat-label { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; margin-top: .25rem; }

/* ── Razítková karta ──────────────────────────────────────────────────── */
.club-section-title { font-size: .95rem; font-weight: 800; margin: 0 0 .15rem; }
.club-section-note { font-size: .8rem; color: #6b7280; margin: 0 0 .7rem; }
.stamps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin: .25rem 0 .5rem; }
.stamp {
  aspect-ratio: 1; border-radius: 50%; background: #f3f4f6; border: 2px dashed #d1d5db;
  display: flex; align-items: center; justify-content: center; color: #c4b5fd;
}
.stamp.earned { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); border-style: solid; border-color: transparent; color: #fff; }
.stamp.reward { border-color: #f59e0b; color: #f59e0b; background: #fffbeb; }
.stamp.reward.earned { background: #f59e0b; color: #fff; border-color: transparent; }

/* ── Aktivita ─────────────────────────────────────────────────────────── */
.club-activity { margin: 0; padding: 0; list-style: none; }
.club-activity li { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid #f3f4f6; }
.club-activity li:last-child { border-bottom: none; }
.act-ic { width: 30px; height: 30px; border-radius: 9px; background: #f5f3ff; color: #7c3aed; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.act-main { flex: 1; min-width: 0; }
.act-name { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-date { font-size: .76rem; color: #9ca3af; }
.act-delta { font-weight: 800; font-size: .9rem; white-space: nowrap; }
.act-delta.plus { color: #16a34a; }
.act-delta.minus { color: #db2777; }

/* ── Jak to funguje ───────────────────────────────────────────────────── */
.club-how { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 14px; padding: .9rem 1rem; margin: 1.25rem 0 0; }
.club-how h3 { margin: 0 0 .4rem; font-size: .9rem; }
.club-how ul { margin: 0; padding-left: 1.1rem; color: #4b5563; font-size: .86rem; line-height: 1.5; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.club-divider { height: 1px; background: #f3f4f6; margin: 1.25rem 0; border: none; }
.club-foot-links { display: flex; justify-content: center; gap: 1.25rem; margin: 1rem 0 0; }
.club-foot-links a { color: #6b7280; text-decoration: none; font-size: .85rem; display: inline-flex; align-items: center; gap: .35rem; }
.club-foot-links a:hover { color: #7c3aed; }
.club-foot { text-align: center; color: #9ca3af; font-size: .72rem; letter-spacing: .08em; padding: 1rem; background: #fafafa; border-top: 1px solid #f3f4f6; }
.club-foot b { color: #7c3aed; }

/* QR (success) */
.club-qr { text-align: center; margin: 1.25rem 0 .5rem; }
.club-qr img { width: 200px; height: 200px; }
.club-code { text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: 1px; color: #1f2937; margin: 0 0 1rem; }
.club-wallet { display: flex; flex-direction: column; gap: .6rem; }
.wallet-apple { background: #000; }
.wallet-google { background: #1a73e8; }
.club-account-link { display: block; text-align: center; margin: 1rem 0 0; color: #7c3aed; font-weight: 600; }

/* ── Konto zákazníka (/ucet) — vzhled dle návrhu, pozadí dle úrovně ─────────── */
.acct {
  max-width: 430px; margin: 1.5rem auto; border-radius: 22px; overflow: hidden;
  background: #fff; box-shadow: 0 22px 60px rgba(60, 30, 90, .22);
}
.acct.tier-base   { --fg: #fff;     --dim: rgba(255,255,255,.82); --panel: rgba(255,255,255,.16); }
.acct.tier-bronze { --fg: #fff;     --dim: rgba(255,255,255,.85); --panel: rgba(255,255,255,.17); }
.acct.tier-silver { --fg: #23262b;  --dim: rgba(0,0,0,.6);        --panel: rgba(0,0,0,.08); }
.acct.tier-gold   { --fg: #3a2c00;  --dim: rgba(0,0,0,.62);       --panel: rgba(0,0,0,.10); }
.acct.tier-base   .acct-top { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); }
.acct.tier-bronze .acct-top { background: linear-gradient(140deg, #b87333 0%, #6e4520 100%); }
.acct.tier-silver .acct-top { background: linear-gradient(160deg, #dbe0e6 0%, #9aa1ac 100%); }
.acct.tier-gold   .acct-top { background: linear-gradient(160deg, #ebcb4e 0%, #b5891a 100%); }

.acct-top { padding: 1.3rem 1.4rem 1.25rem; color: var(--fg); }
.acct-head { display: flex; align-items: center; gap: .8rem; }
.acct-logo { width: 50px; height: 50px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--panel); display: flex; align-items: center; justify-content: center; }
.acct-logo img { width: 100%; height: 100%; object-fit: cover; }
.acct-logo--ph span { font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--fg); }
.acct-titles { min-width: 0; }
.acct-title { font-size: 1.15rem; font-weight: 800; line-height: 1.15; }
.acct-subtitle { font-size: .82rem; color: var(--dim); margin-top: .12rem; }

.acct-balrow { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; margin-top: 1.1rem; }
.acct-kredit-label, .acct-program-label { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.acct-kredit { line-height: 1; margin-top: .2rem; }
.acct-kredit .num { font-size: 2.1rem; font-weight: 800; }
.acct-kredit .unit { font-size: 1rem; font-weight: 600; color: var(--dim); }
.acct-program { text-align: right; }
.acct-tier-badge { display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem;
  padding: .28rem .7rem; border-radius: 999px; background: var(--panel); color: var(--fg);
  font-weight: 700; font-size: .82rem; }

.acct-stampbox { margin-top: 1.1rem; background: var(--panel); border-radius: 14px; padding: .7rem .8rem .8rem; }
.acct-stamphead { display: flex; justify-content: space-between; align-items: center; color: var(--fg); font-weight: 700; font-size: .9rem; }
.acct-stampcount { color: var(--dim); font-weight: 700; }
.acct-stamps { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.acct-stamp { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--fg); color: var(--fg); opacity: .45; flex: none; }
.acct-stamp.on { opacity: 1; background: var(--fg); color: transparent; }
.acct-stamp.on svg { stroke: var(--panel); }
.acct-stamp.reward { opacity: 1; border-style: dashed; }
.acct-stamp.reward.on { background: #f5b301; border-color: #f5b301; }
.acct-stamp.reward.on svg { stroke: #fff; fill: #fff; }

.acct-body { padding: 1.1rem 1.3rem 1.3rem; background: #fff; }
.acct-seclabel { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; font-weight: 700; margin: 0 0 .5rem; }
.acct-menu { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.acct-menu li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid #f1f5f9; }
.acct-menu li:last-child { border-bottom: 0; }
.acct-menu-day { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #7c3aed; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; }
.acct-menu-title { flex: 1; min-width: 0; font-weight: 700; color: #1f2937; font-size: .92rem; }
.acct-menu-note { flex: none; color: #94a3b8; font-size: .78rem; text-align: right; max-width: 40%; }

.acct-qrcard { display: flex; align-items: center; gap: 1.1rem; justify-content: center;
  background: #fff; border: 1px solid #eef0f3; border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 6px 18px rgba(15,23,42,.06); }
.acct-qr { width: 150px; height: 150px; display: block; }
.acct-qrcode { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; letter-spacing: 1px; color: #475569; }

.acct-wallet { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.acct-wbtn { display: block; text-align: center; padding: .7rem; border-radius: 10px; background: #111827; color: #fff;
  text-decoration: none; font-weight: 700; font-size: .9rem; }

.acct-foot { text-align: center; padding: .7rem; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; background: #fff; }
.acct .muted { color: #64748b; padding: 1.2rem 1.4rem; }
