/* Avira Café – arculat a kávézó belső tere alapján:
   tölgyfa lamellák, fekete fém, zsályazöld fal, márvány asztallap, terrakotta pad, meleg fény */
:root {
  --espresso: #1d1916;      /* fekete pult, fém polcok */
  --espresso-2: #2a241f;
  --oak: #c4935f;           /* tölgy lamella */
  --oak-light: #e9d3b5;
  --sage: #677460;          /* logó / zöld fal */
  --sage-light: #e5e9e1;
  --terracotta: #a24b2e;    /* terrakotta pad */
  --brown: #42332c;         /* logó felirat */
  --marble: #fbfaf7;        /* márvány asztallap */
  --cream: #f4efe7;
  --text: #2b231e;
  --muted: #857a70;
  --line: #e7dfd3;
  --ok: #4f6b45;
  --err: #a8382c;
  --radius: 22px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --glow: radial-gradient(ellipse at 50% 0%, rgba(255, 196, 120, .28), transparent 65%);
  --slats: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--cream); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--brown); letter-spacing: .01em; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.3rem; }
a { color: var(--terracotta); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
[hidden] { display: none !important; }
.wrap { max-width: 460px; margin: 0 auto; padding: 18px 18px 48px; }

/* ---------- Fejléc (belső oldalak) ---------- */
.bar {
  background: #000; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px; padding-top: max(10px, env(safe-area-inset-top));
}
.bar img { height: 42px; width: auto; display: block; }
.bar .linkish { color: rgba(255,255,255,.75); }
.bar .who { color: rgba(255,255,255,.8); font-size: .9rem; }

/* ---------- Pecsétkártya ---------- */
.card {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(120% 70% at 50% -10%, rgba(255,196,120,.16), transparent 60%), var(--espresso);
  border-radius: var(--radius); padding: 22px 18px 20px;
  box-shadow: 0 14px 34px rgba(29,25,22,.28);
}

.card .logo { width: 92px; height: auto; filter: drop-shadow(0 0 14px rgba(255,190,110,.35)); }
.card .hello { color: rgba(255,255,255,.75); margin: 6px 0 0; font-size: .95rem; }
.stamps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 50px); justify-content: center; gap: 12px 16px; margin: 20px 0 6px; }
.dot {
  width: 50px; height: 50px; border-radius: 50%;
  border: 2px dashed rgba(233,211,181,.45); display: grid; place-items: center;
}
.dot.on {
  border: 0;
  background: var(--oak) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 10h11v4.2a5 5 0 0 1-5 5h-1a5 5 0 0 1-5-5z' fill='%231d1916'/%3E%3Cpath d='M15.5 11.2h1.3a2.6 2.6 0 0 1 0 5.2h-1.6' fill='none' stroke='%231d1916' stroke-width='1.8'/%3E%3Cpath d='M8 3.8c-1 1.1 1 2 0 3.3M11.5 3.8c-1 1.1 1 2 0 3.3' fill='none' stroke='%231d1916' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M3.5 21h14' stroke='%231d1916' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center 55% / 30px no-repeat;
  box-shadow: 0 0 12px rgba(196,147,95,.45);
}
.dot.gift {
  border: 2px solid var(--terracotta); color: #f1c3ae;
  font-size: .62rem; font-weight: 700; line-height: 1.1;
}
.dot.gift.ready { background: var(--terracotta); color: #fff; box-shadow: 0 0 16px rgba(162,75,46,.6); }
.count { position: relative; z-index: 1; margin: 12px 0 0; color: rgba(255,255,255,.75); }
.count strong { font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.reward {
  position: relative; z-index: 1;
  background: var(--terracotta); color: #fff; border-radius: 14px; padding: 12px; margin: 14px 0 0; font-weight: 600;
}
.qr-panel { background: var(--marble); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 14px; text-align: center; }
.qr { width: 210px; margin: 4px auto 8px; }
.qr svg { display: block; width: 100%; height: auto; }
.code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .18em; color: var(--brown); font-weight: 700; }

/* ---------- Űrlapok, gombok ---------- */
form { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--brown); }
input, select {
  font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--text);
}
input:focus { outline: none; border-color: var(--oak); box-shadow: 0 0 0 3px rgba(196,147,95,.2); }
button.primary, button.secondary, .btn {
  font: inherit; font-weight: 600; font-size: 1rem; padding: 14px; border-radius: 12px; cursor: pointer; width: 100%;
  display: block; text-align: center; text-decoration: none;
}
button.primary, .btn { background: var(--espresso); color: #fff; border: 0; }
button.primary:active { transform: translateY(1px); }
button.secondary { background: transparent; color: var(--brown); border: 1.5px solid var(--brown); }
button.oak { background: var(--oak); color: var(--espresso); }
button.terracotta { background: var(--terracotta); color: #fff; border: 0; }
button:disabled { opacity: .45; cursor: default; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 0; }
.msg { padding: 11px 13px; border-radius: 12px; font-size: .95rem; }
.msg.error { background: #f8e7e2; color: var(--err); }
.msg.ok { background: var(--sage-light); color: var(--ok); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
label.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--sage); padding: 0; }
.panel { background: var(--marble); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 14px; }
.wallets { margin-top: 14px; display: grid; gap: 10px; text-align: center; }
.wallet-btn { display: block; background: #000; color: #fff; text-decoration: none; border-radius: 12px; padding: 14px; font-weight: 600; }

/* Fülek */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--cream); padding: 4px; border-radius: 14px; }
.tab { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 11px; background: transparent; color: var(--muted); cursor: pointer; }
.tab.active { background: var(--espresso); color: #fff; }

/* ---------- Pultos felület (sötét, mint a pult) ---------- */
body.dark { background: var(--espresso) var(--slats); color: #fff; }
body.dark h1, body.dark h2 { color: #fff; }
body.dark .panel { background: var(--espresso-2); border-color: rgba(255,255,255,.08); }
body.dark label { color: rgba(255,255,255,.85); }
body.dark input { background: #14110f; border-color: rgba(255,255,255,.15); color: #fff; }
body.dark .muted, body.dark .events { color: rgba(255,255,255,.6); }
body.dark button.secondary { color: #fff; border-color: rgba(255,255,255,.5); }
body.dark button.primary { background: var(--oak); color: var(--espresso); }
body.dark button.primary.terracotta { background: var(--terracotta); color: #fff; }
body.dark .events li { border-color: rgba(255,255,255,.08); }
#reader { width: 100%; border-radius: 14px; overflow: hidden; }
.stamp-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stamp-buttons button { font-size: 1.3rem; padding: 18px 0; }
.events { list-style: none; padding: 0; margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.events li { padding: 7px 0; border-top: 1px solid var(--line); }

/* ---------- Admin ---------- */
.wrap.wide { max-width: 1120px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--marble); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stat .v { font-family: var(--serif); font-size: 1.9rem; color: var(--brown); }
.stat .k { font-size: .8rem; color: var(--muted); }
.stat.accent { background: #000; border: 0; }
.stat.accent .v { color: var(--oak-light); }
.stat.accent .k { color: rgba(255,255,255,.7); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
.filters label { font-size: .8rem; }
.filters input { padding: 9px 10px; font-size: .95rem; }
.filters button { width: auto; padding: 10px 16px; font-size: .95rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); }
td.num, th.num { text-align: right; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.pill.stamp { background: var(--oak-light); color: #6b4a26; }
.pill.reward_earned { background: var(--sage-light); color: var(--ok); }
.pill.redeem { background: var(--terracotta); color: #fff; }
.pill.expire, .pill.reward_expire { background: #ece8e3; color: var(--muted); }
.admin-tabs { display: flex; gap: 6px; margin: 20px 0 12px; background: transparent; padding: 0; }
.admin-tabs .tab { flex: none; padding: 9px 18px; background: var(--marble); border: 1px solid var(--line); }
.admin-tabs .tab.active { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.login-hero { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 22px; padding: 20px;
  background: #000; }
.login-hero .logo-top { width: 120px; height: auto; display: block; margin: 0 auto; }
.login-box { width: 100%; max-width: 380px; background: var(--marble); border-radius: var(--radius); padding: 24px; }
.login-box .logo { display: block; width: 96px; margin: 0 auto 8px; }

/* ---------- Teljes képernyős elrendezés mobilon (nincs görgetés) ---------- */
html.fit, html.fit body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.screen {
  height: 100vh; height: 100dvh; display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 18px max(14px, env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto;
}

/* Kezdőoldal: a kávézó fotója kitölti a hátteret */
.welcome {
  background: linear-gradient(180deg, rgba(18,14,12,.6) 0%, rgba(18,14,12,.5) 40%, rgba(18,14,12,.9) 100%),
    url("/img/bg-mobile.jpg") center / cover no-repeat, var(--espresso);
  color: #fff;
}
@media (min-width: 700px) {
  .welcome { background: linear-gradient(180deg, rgba(18,14,12,.5), rgba(18,14,12,.85)),
    url("/img/bg-wide.jpg") center / cover no-repeat, var(--espresso); }
}
.welcome .brand-area { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 0; }
.welcome .logo { width: clamp(84px, 16dvh, 136px); height: auto; filter: drop-shadow(0 0 22px rgba(255,190,110,.35)); }
.welcome .tagline { font-family: var(--serif); font-size: clamp(1.25rem, 3.2dvh, 1.6rem); margin: 1.4dvh 0 .4dvh; }
.welcome .sub { color: rgba(255,255,255,.75); font-size: .92rem; margin: 0; }
.welcome .panel-glass {
  background: rgba(251,250,247,.97); color: var(--text); border-radius: 24px;
  padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.welcome form { gap: 1.2dvh; margin-top: 1.4dvh; }
.welcome label { gap: 4px; font-size: .85rem; }
.welcome input { padding: 11px 13px; }
.welcome label.check { font-size: .82rem; line-height: 1.3; }
.welcome button.primary { padding: 13px; }

/* Kártya oldal */
.app { background: var(--cream); }
.app .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 1.6dvh; }
.app .top img { height: clamp(34px, 5.5dvh, 46px); width: auto; display: block; }
.app .greet { font-family: var(--serif); font-size: 1.15rem; color: var(--brown); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--marble);
  display: grid; place-items: center; cursor: pointer; color: var(--brown); font-size: 1.2rem; line-height: 1; }
.app .card { padding: clamp(14px, 2.4dvh, 22px) 16px; }
.app .card .label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oak); font-weight: 600; }
.app .card .title { font-family: var(--serif); font-size: clamp(1.2rem, 3dvh, 1.5rem); color: #fff; margin: 2px 0 0; }
.app .stamps { grid-template-columns: repeat(4, var(--d)); gap: 1.4dvh 14px; margin: 2dvh 0 .5dvh; --d: clamp(40px, 6.6dvh, 54px); }
.app .dot { width: var(--d); height: var(--d); }
.app .dot.on { background-size: 58%; }
.app .count { margin-top: 1dvh; font-size: .95rem; }
.app .reward { margin-top: 1.4dvh; padding: 10px 12px; font-size: .95rem; }
.app .qr-panel { flex: 1; min-height: 0; margin-top: 1.6dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.6dvh 16px; }
.app .qr { width: auto; height: 100%; max-height: 230px; aspect-ratio: 1; margin: 0; min-height: 0; flex: 1; }
.app .qr svg { width: 100%; height: 100%; }
.app .qr-caption { margin: 1dvh 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.app .actions { display: grid; gap: 8px; margin-top: 1.4dvh; }

/* Alsó lap (beállítások) */
.sheet-bg { position: fixed; inset: 0; background: rgba(18,14,12,.45); z-index: 10; }
.bottom-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; background: var(--marble);
  border-radius: 22px 22px 0 0; padding: 18px 20px max(20px, env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto;
  box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.bottom-sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.bottom-sheet .row { padding: 12px 0; border-top: 1px solid var(--line); }

/* Lejárat, hírlevél a QR alatt, lábléc */
.app .expiry { color: rgba(255,255,255,.55); font-size: .78rem; margin: .6dvh 0 0; }
.app .qr-panel .nl { margin-top: 1.2dvh; font-size: .85rem; align-items: center; }
.app .qr-panel .nl input { margin: 0; }
.nl-msg { font-size: .8rem; color: var(--ok); margin-top: 4px; }
.site-footer { text-align: center; font-size: .72rem; line-height: 1.55; color: var(--muted); margin-top: 1.2dvh; }
.site-footer a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(133,122,112,.35); }
.site-footer.light { color: rgba(255,255,255,.7); }
.site-footer.light a { border-color: rgba(255,255,255,.3); }
.welcome .legal-note { font-size: .74rem; color: var(--muted); margin: 0; text-align: center; line-height: 1.4; }
.welcome .legal-note a { color: var(--brown); }
@media (max-height: 720px) { .welcome .sub { display: none; } .welcome .logo { width: clamp(70px, 13dvh, 110px); } }

/* Kártya oldal felső része: a megvilágított Avira tábla fotója sötétbe olvad, benne a pecsétkártya */
.app { padding-top: 0; }
.app .hero-zone {
  --ph: calc(clamp(150px, 22dvh, 200px) + env(safe-area-inset-top));
  flex: none; margin: 0 -18px; padding: calc(var(--ph) - 46px) 18px 18px;
  background:
    linear-gradient(180deg, rgba(29,25,22,0) 0, rgba(29,25,22,0) calc(var(--ph) * .55), #1d1916 var(--ph)),
    url("/img/header.jpg") 42% 0 / auto var(--ph) no-repeat;
  background-color: #1d1916;
  border-radius: 0 0 28px 28px;
}
@media (min-width: 481px) { .app .hero-zone { margin: 0; } }
.app .top { margin: 0 0 1.2dvh; justify-content: flex-start; }
.app .top .greet { font-family: var(--serif); font-size: clamp(1.2rem, 3dvh, 1.45rem); color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.app .card-menu { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; font-size: 1rem;
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.85); }
.app .hero-zone .card { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); box-shadow: none; }
.app .qr-panel { margin-top: 1.8dvh; }

/* Admin: vendég műveletek */
.row-actions { display: flex; gap: 6px; }
button.mini { font: inherit; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--brown); }
button.mini.danger { color: var(--err); border-color: #eccfc8; }
tr.blocked td { color: var(--muted); }
.reward .reward-exp { display: block; font-weight: 400; font-size: .8rem; opacity: .85; margin-top: 2px; }

/* a QR-kód mindig látszódjon, kis kijelzőn is */
.app .qr { min-height: 130px; }
@media (max-height: 760px) {
  .app .hero-zone { --ph: calc(clamp(110px, 17dvh, 140px) + env(safe-area-inset-top)); }
  .app .stamps { --d: clamp(34px, 5.6dvh, 44px); gap: 1dvh 12px; margin: 1.2dvh 0 .3dvh; }
  .app .card .title { font-size: 1.1rem; }
  .app .card .label { display: none; }
  .app .reward { margin-top: 1dvh; padding: 8px 10px; font-size: .9rem; }
  .site-footer { margin-top: .8dvh; line-height: 1.4; }
}

/* Nagyobb QR-kód */
.app .qr-panel { padding: 1.2dvh 14px; }
.app .qr { max-height: 270px; min-height: 150px; }
.app .qr-caption { margin-top: .6dvh; }
.app .qr-panel .nl { margin-top: .8dvh; }


/* ---- Finomhangolás (valódi iPhone nézet alapján) ---- */
/* fotós fejléc: mindig kitölti a teljes szélességet */
.app .hero-zone { position: relative; background-size: auto, max(100%, calc(var(--ph) * 3.36)) auto; }

/* logó a kártya bal felső sarkában, a ⋯ gomb párja */
.app .card-logo { display: block; margin: 0 auto 2px; width: clamp(48px, 7.5dvh, 64px); height: auto; filter: drop-shadow(0 0 12px rgba(255,190,110,.25)); }
.app .card .title { padding: 0 40px; margin-top: 0; }
@media (max-height: 760px) { .app .card-logo { width: 44px; } .app .card .title { font-size: 1.05rem; } }

/* nagyobb, szellősebb pecsétkörök – a „8. ajándék” kényelmesen elfér */
.app .stamps, .app .card .stamps { --d: clamp(52px, 7.4dvh, 62px); grid-template-columns: repeat(4, var(--d)); gap: 1.6dvh clamp(16px, 5vw, 26px); }
.app .dot.gift { font-size: .7rem; line-height: 1.15; }
@media (max-height: 760px) {
  .app .stamps, .app .card .stamps { --d: 50px; gap: 10px clamp(14px, 4.5vw, 22px); }
}

/* rendezett lábléc */
.site-footer.neat { font-size: .74rem; line-height: 1.7; text-align: center; }
.site-footer.neat a { border: 0; text-decoration: none; }
.site-footer.neat i { font-style: normal; margin: 0 .45em; opacity: .5; }

/* helykezelés: a QR-panel sosem lóg ki; a felső rész kompaktabb */
.app .hero-zone { --ph: calc(clamp(120px, 16dvh, 170px) + env(safe-area-inset-top)); }
.app .qr-panel { overflow: hidden; min-height: 0; }
.app .qr { min-height: 0; max-height: 270px; }
.app .stamps, .app .card .stamps { --d: clamp(46px, 6.6dvh, 60px); gap: 1.3dvh clamp(16px, 5vw, 26px); margin: 1.4dvh 0 .4dvh; }

@media (max-height: 760px) {
  .app .hero-zone { --ph: calc(clamp(96px, 15dvh, 120px) + env(safe-area-inset-top)); }
  .app .stamps, .app .card .stamps { --d: 46px; gap: 8px clamp(14px, 4.5vw, 22px); }
  .app .card-logo { width: 38px; }
}

/* ajándék kör: ikon szöveg helyett, bármilyen méretben elfér */
.dot.gift, .app .dot.gift { font-size: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d98b6c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='9' width='17' height='4' rx='1'/%3E%3Cpath d='M5 13v7h14v-7M12 9v11M12 9c-1.5-3.5-5.5-4-5.5-1.5S10 9 12 9zM12 9c1.5-3.5 5.5-4 5.5-1.5S14 9 12 9z'/%3E%3C/svg%3E") center / 52% no-repeat; }
.dot.gift.ready, .app .dot.gift.ready { background: var(--terracotta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='9' width='17' height='4' rx='1'/%3E%3Cpath d='M5 13v7h14v-7M12 9v11M12 9c-1.5-3.5-5.5-4-5.5-1.5S10 9 12 9zM12 9c1.5-3.5 5.5-4 5.5-1.5S14 9 12 9z'/%3E%3C/svg%3E") center / 52% no-repeat; }

html.fit, html.fit body { touch-action: pan-x pan-y; }
.site-footer.neat { font-size: .7rem; line-height: 1.6; }
.site-footer.neat div { white-space: nowrap; }
@media (max-width: 380px) { .site-footer.neat { font-size: .64rem; } .site-footer.neat i { margin: 0 .3em; } }
.app .qr-caption { line-height: 1.35; } .app .qr-caption .code { font-size: .8rem; }

.adjust-box { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.adjust-box select { padding: 9px 10px; font-size: .95rem; }
.who-link { color: var(--brown); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.pill.stamp_removed, .pill.reward_removed { background: #f8e7e2; color: var(--err); }
.pill.reward_added { background: var(--sage-light); color: var(--ok); }

.app .expiry { display: block !important; font-size: .74rem; margin-top: .4dvh; }

.app .qr-caption { font-size: .78rem; white-space: nowrap; }
.app .qr-caption .code { font-size: .76rem; letter-spacing: .1em; }
.app .expiry { white-space: nowrap; }
@media (max-height: 760px) {
  .app .hero-zone { --ph: calc(clamp(84px, 13dvh, 104px) + env(safe-area-inset-top)); padding-bottom: 12px; }
  .app .top .greet { font-size: 1.1rem; }
  .app .card { padding-top: 10px; padding-bottom: 12px; }
  .app .card-logo { width: 34px; }
  .app .card .title { font-size: 1rem; }
  .app .count { margin-top: .4dvh; }
}

/* ---------- Pult: teljes képernyő, görgetés nélkül ---------- */
.pult { padding: 0; max-width: 520px; }
.pult .bar { flex: none; }
.pult .who { color: rgba(255,255,255,.8); font-size: .9rem; display: flex; gap: 10px; align-items: center; }
.pult .pv { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.2dvh; padding: 1.6dvh 16px max(14px, env(safe-area-inset-bottom)); }
.pult #login-view { justify-content: center; }
.pult #reader-wrap { flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.pult #reader { width: 100%; }
.pult #reader video { width: 100% !important; height: auto !important; max-height: 100%; object-fit: cover; }
.pult .manual { display: flex; gap: 8px; margin: 0; }
.pult .manual input { flex: 1; min-width: 0; }
.pult .manual button { width: auto; padding: 12px 16px; }
.pult .card { padding: 1.6dvh 14px; }
.pult .card h2 { color: #fff; font-size: 1.3rem; }
.pult .stamps { --d: clamp(40px, 6.4dvh, 54px); display: grid; grid-template-columns: repeat(4, var(--d)); gap: 1dvh 16px; justify-content: center; margin: 1.2dvh 0 .4dvh; }
.pult .dot { width: var(--d); height: var(--d); }
.pult .dot.on { background-size: 58%; }
.pult .count { margin: .6dvh 0 0; }
.pult .reward { margin-top: 1dvh; padding: 9px; }
.pult .stamp-buttons { margin: 0; }
.pult .stamp-buttons button { padding: 2dvh 0; }
.pult .events { flex: 1; min-height: 0; overflow: hidden; margin: 0; }
.pult #next { flex: none; }

.pult .cam-error { display: grid; gap: 8px; background: #3a1f17; border: 1px solid rgba(162,75,46,.6); color: #f3d3c6; border-radius: 14px; padding: 12px; font-size: .9rem; }
.pult .cam-error button { padding: 12px; }
.pult .cam-error small { color: rgba(243,211,198,.7); font-size: .75rem; line-height: 1.35; }

/* Pult: rögzített képernyő + saját kamera nézet */
html.fit body.dark { position: fixed; inset: 0; width: 100%; }
.pult { position: absolute; inset: 0; margin: 0 auto; height: 100%; }
.pult #reader-wrap { position: relative; display: block; }
.pult #cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.pult .frame { position: absolute; left: 50%; top: 50%; width: min(62%, 62vh); aspect-ratio: 1; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); border-radius: 18px; }
.pult .frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; }
.pult .frame i:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; }
.pult .frame i:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 16px 0 0; }
.pult .frame i:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 16px; }
.pult .frame i:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 16px 0; }
.pult .cam-hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: rgba(255,255,255,.85); font-size: .85rem; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

/* ---------- Születésnap ---------- */
.bday-coupon { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 1.4dvh; text-align: left; cursor: pointer;
  font: inherit; color: #fff; border: 0; border-radius: 16px; padding: 10px 12px;
  background: linear-gradient(135deg, #a24b2e, #c4935f); box-shadow: 0 6px 18px rgba(162,75,46,.35);
  animation: bday-pulse 2.4s ease-in-out infinite; }
.bday-coupon .bday-ico { font-size: 1.6rem; line-height: 1; }
.bday-coupon .bday-txt { flex: 1; display: grid; gap: 1px; font-size: .9rem; line-height: 1.25; }
.bday-coupon small { font-size: .76rem; opacity: .9; }
.bday-coupon .bday-cta { background: #fff; color: #a24b2e; font-weight: 700; font-size: .85rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
@keyframes bday-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.015); } }
.app.has-coupon .qr { max-height: 200px; }

.modal { position: fixed; z-index: 12; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 400px);
  max-height: 92dvh; overflow: auto; background: var(--marble); border-radius: 22px; padding: 22px 20px 18px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal h2 { margin: 4px 0 8px; }
.modal p { margin: 0 0 12px; font-size: .95rem; line-height: 1.45; }
.modal .cm-cake { font-size: 2.6rem; line-height: 1; }
.modal-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; }
.bday-form { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin: 0; }
.bday-form button, .bday-form .msg { grid-column: 1 / -1; }
.bday-form select { padding: 12px; font-size: 1rem; }
.coupon-modal .cm-qr { width: min(60vw, 220px); margin: 0 auto 14px; }
.coupon-modal .cm-qr svg { width: 100%; height: auto; display: block; }

button.bday-btn { background: linear-gradient(135deg, #a24b2e, #c4935f); color: #fff; border: 0; }
.pill.birthday_coupon, .pill.birthday_redeem { background: #f6e3d6; color: #a24b2e; }

.pair-code { background: #000; color: #fff; border-radius: 14px; padding: 14px; text-align: center; margin-bottom: 12px; }
.pair-code .code-big { font-family: ui-monospace, Menlo, monospace; font-size: 2.2rem; letter-spacing: .2em; color: var(--oak-light); }
.pair-code small { color: rgba(255,255,255,.7); }
.device-list { list-style: none; padding: 0; margin: 0; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
