/* Vzhled podle www.eccklub.cz: zlatá lišta, tmavě šedá tlačítka, šedý text, modrá Joalis. */
:root {
  --gold1: #fccb3d;
  --gold2: #f1c33f;
  --gold-edge: #d6a62a;
  --gold-soft: #fff6d9;
  --pill1: #6b6b6b;
  --pill2: #484848;
  --blue: #00448e;
  --green: #2f8f2b;
  --green-soft: #eaf6e8;
  --text: #2e2e2e;
  --muted: #565656;
  --line: #cfcfcf;
  --bad: #a3261b;
  --bad-soft: #fbe7e4;
  font-size: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--text); font-family: Arial, Helvetica, sans-serif; line-height: 1.35;
  -webkit-text-size-adjust: 100%; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  padding: 0 18px calc(env(safe-area-inset-bottom) + 16px); }
[hidden] { display: none !important; }

/* Zlatá lišta nahoře jako menu na eccklub.cz */
.bar { margin: 0 -6px 18px; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: linear-gradient(var(--gold1), var(--gold2)); border-radius: 0 0 14px 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,.25); display: flex; align-items: center; gap: 12px; min-height: 64px; }
.bar img { height: 42px; width: auto; }
.bar .title { font-size: 1.15rem; font-weight: 700; color: #3a3a3a; }
.bar .who { margin-left: auto; font-size: .8rem; color: #3a3a3a; text-align: right; max-width: 55%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.screen { display: flex; flex-direction: column; gap: 16px; }
.lead { font-size: 1.45rem; font-weight: 400; color: var(--muted); margin: 8px 0 0; }
.lead small { display: block; font-size: 1rem; color: #7a7a7a; margin-top: 4px; }
.card { background: #fff; border: 1px solid #e4e4e4; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); }
label { font-weight: 700; font-size: 1rem; color: var(--muted); }
input { font: inherit; font-size: 1.15rem; padding: 14px; border: 2px solid var(--line); border-radius: 10px; width: 100%;
  background: #fff; color: var(--text); min-height: 60px; }
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,68,142,.15); }
.pw { position: relative; }
.pw input { padding-right: 110px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; border-radius: 8px; font: inherit; font-size: .85rem;
  padding: 0 14px; color: #fff; background: linear-gradient(var(--pill1), var(--pill2)); }
.hint { color: var(--muted); font-size: .85rem; margin: 2px 0 0; }

.btn { font: inherit; font-weight: 700; border: 0; border-radius: 12px; min-height: 64px; padding: 14px 18px; width: 100%;
  cursor: pointer; touch-action: manipulation; }
.btn small { font-weight: 400; font-size: .8rem; }
.btn.primary { background: linear-gradient(var(--gold1), var(--gold2)); color: #2b2b2b; border: 1px solid var(--gold-edge);
  box-shadow: 0 2px 4px rgba(0,0,0,.22); }
.btn.primary:active { background: linear-gradient(var(--gold2), #e3b232); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.btn.primary:disabled { background: #eee; color: #9a9a9a; border-color: #ddd; box-shadow: none; }
.btn.dark { background: linear-gradient(var(--pill1), var(--pill2)); color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.22); }
.btn.ghost { background: transparent; color: var(--blue); text-decoration: underline; min-height: 56px; font-weight: 400; }
.btn.big { font-size: 1.25rem; min-height: 88px; margin-top: 6px; }
.btn.small { min-height: 48px; width: auto; font-size: .9rem; padding: 8px 16px; }
.link { background: none; border: 0; font: inherit; color: var(--blue); text-decoration: underline; padding: 8px; min-height: 44px; cursor: pointer; }

.status { border-radius: 12px; padding: 14px 16px; font-weight: 700; font-size: 1rem; }
.status.ok { background: var(--green-soft); color: var(--green); border: 1px solid #cfe8cb; }
.status.bad { background: var(--bad-soft); color: var(--bad); }
.acct { margin: -8px 0 0; font-size: .85rem; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.acct .link { padding: 4px; min-height: 36px; }
.favorites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.favorites:empty { display: none; }
.fav { font: inherit; font-weight: 700; font-size: 1.1rem; min-height: 64px; border-radius: 12px; border: 2px solid var(--gold2);
  background: #fff; color: var(--text); touch-action: manipulation; }
.fav:active, .fav.on { background: var(--gold-soft); border-color: var(--gold-edge); }
.amount-label { margin-top: 6px; display: block; }
.amount-box { position: relative; margin-top: 8px; }
.amount-box input { font-size: 2.6rem; font-weight: 700; text-align: right; padding: 16px 78px 16px 16px; min-height: 104px; border-width: 3px; }
.amount-box .cur { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 700; color: var(--muted); }
.msg { margin: 0; font-weight: 700; }
.msg.error { color: var(--bad); }
.bottom { margin-top: auto; text-align: center; padding-top: 24px; }

.result-amount { font-size: 2.4rem; font-weight: 700; text-align: center; margin: 0; }
.qr-wrap { background: #fff; border: 1px solid #e4e4e4; border-radius: 14px; padding: 18px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.qr svg { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.qr-cap { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.result-meta { text-align: center; color: var(--muted); margin: 0; font-size: .95rem; }

.install { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); max-width: 496px; margin: 0 auto;
  background: #fff; border: 1px solid #e4e4e4; border-top: 4px solid var(--gold1); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,.18); font-size: .9rem; }
.install p { margin: 0 0 8px; }
.install-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }

.busy { position: fixed; inset: 0; background: rgba(255,255,255,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; z-index: 10; }
.spinner { width: 56px; height: 56px; border: 6px solid #f3e3b0; border-top-color: var(--gold-edge); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
