/* ============================================================
   kuponfuzet.css – a fejléc KUPONJAIM gombja + a jobbról becsúszó kuponfüzet (2026.11.22.)

   A felhasználó kérése: „A header-ben lévő "VIP és PONTGYŰJTÉS" oldal kerüljön a footer-be … A helyére pedig tervezzünk
   a header-be egy "KUPONJAIM" gombot vagy feliratot. Erre kattintva jobb oldalon egy sidebar jöjjön elő, ahol vásárlás vagy
   fizetés közben is tud a vásárló az elérhető kuponok közül válogatni.” A jóváhagyott minta: _DEV_KORNYEZET/_CLAUDE/minta/
   kuponfuzet/ (D10: lila szaggatott keretes gomb, lüktetéssel; D11: szám-jelvény NINCS).

   Minden oldalon betöltődik (a pénztárban is – D6). A MOZGÁS (animáció, átmenet) csak akkor él, ha az effects.js betöltött
   (html.fx-ready): a pénztárban és a visszaigazolón az effects nem töltődik be, és az admin „Látványeffektek” kapcsolója is
   leállítja – ott a fiók mozgás nélkül, azonnal jelenik meg. A mozgáscsökkentés mindent megállít (6. szakasz).
   Csak a bolt tokenjei (base.css) + a kupon-gomb saját lila színe (--kf-lila).
   ============================================================ */
:root {
    --kf-spring: cubic-bezier(.34, 1.56, .64, 1);
    --kf-out:    cubic-bezier(.2, .8, .2, 1);
    --kf-w:      440px;
    --kf-stub:   96px;
    --kf-lila:     #7c3aed;
    --kf-lila-rgb: 124, 58, 237;
    --kf-lila-bg:  rgba(124, 58, 237, .08);
    --kf-lila-bg2: rgba(124, 58, 237, .15);
}
[data-theme="dark"] {
    --kf-lila:     #a78bfa;
    --kf-lila-rgb: 167, 139, 250;
    --kf-lila-bg:  rgba(167, 139, 250, .10);
    --kf-lila-bg2: rgba(167, 139, 250, .18);
}

/* ── 1. Fejléc: KUPONJAIM gomb ──────────────────────────────
   D10: „Lehetne inkább egy lila szaggatott vonallal körbekerítve, és apró lüktető effektet adhatnánk neki” · D11: „a kupon
   melletti badge nem kell egyáltalán … A pulzálás elegendő figyelemfelkeltés”. → lila szaggatott keretes kapszula, szám
   nélkül; 2,8 mp-enként szívverés (1,06×) és egy kifelé táguló lila gyűrű. A lila csak ezen a gombon (és a hamburgermenü
   során) – a kuponfüzet „jele”; a fiók maga arany. */
/* Ráncfelvarrás, javítókör (2026.12.01.): a többi menüpont méretéhez igazítva (kisebb párnázás és ikon) – így 1100 px felett
   a fejléc kereső-kapszulájának is marad hely. */
.nav-kupon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 2px;
    padding: 4px 10px 4px 8px;
    color: var(--kf-lila);
    border: 1.5px dashed var(--kf-lila);
    border-radius: 999px;
    background: var(--kf-lila-bg);
    cursor: pointer;
    font: inherit;
}
.nav-kupon::after { display: none; }                   /* a nav-link aláhúzása itt nem kell */
.nav-kupon:hover,
.nav-kupon[aria-expanded="true"] { color: var(--kf-lila); border-style: solid; background: var(--kf-lila-bg2); }
.nav-kupon:focus-visible, .nav-icon--kupon:focus-visible, .mob-nav-kupon:focus-visible { outline: 2px solid var(--kf-lila); outline-offset: 2px; }
.nav-kupon-ic { display: inline-flex; }
.nav-kupon-ic svg { width: 16px; height: 16px; }

/* Keskeny képernyő (≤ 1100 px): ikon a kapszulában, az ikonsorban (ahol eddig a kívánságlista volt) */
.nav-icon--kupon { display: none; }
.nav-icon.nav-icon--kupon {
    width: 40px;
    border: 1.5px dashed var(--kf-lila);
    border-radius: 999px;
    color: var(--kf-lila);
    background: var(--kf-lila-bg);
}
.nav-icon.nav-icon--kupon:hover { border-style: solid; color: var(--kf-lila); background: var(--kf-lila-bg2); }
.nav-icon--kupon svg { flex-shrink: 0; }
@media (max-width: 1100px) {
    .nav-icon.nav-icon--kupon { display: flex; }
}
/* Telefon (≤ 420 px): az ikonsor 5 gombja 375 px-en a jobb margóval együtt férjen ki (eddig a menügomb a kép széléig ért) */
@media (max-width: 420px) {
    .nav-right { gap: 2px; }
    .nav-right > .nav-icon { width: 34px; }
    .nav-right > .nav-icon.nav-icon--kupon { width: 36px; }
}

/* Hamburgermenü: szelvény-kártya (ráncfelvarrás, 2026.12.) – lila, szaggatott keretű „jegy” két oldalt kivágott félkörrel,
   tömör lila ikon (időnként megbillen), időnként végigfutó fénycsík. Darabszám nincs (D10–D11). */
.mob-nav-kupon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 14px 0 4px;
    padding: 12px 14px 12px 12px;
    border-radius: 14px;
    border: 1.5px dashed rgba(var(--kf-lila-rgb), .65);
    background: linear-gradient(120deg, var(--kf-lila-bg2), var(--kf-lila-bg) 55%, transparent), var(--surface);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}
.mob-nav-kupon::before, .mob-nav-kupon::after {          /* a két kivágott félkör */
    content: '';
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px dashed rgba(var(--kf-lila-rgb), .65);
}
.mob-nav-kupon::before { left: -9px; }
.mob-nav-kupon::after  { right: -9px; }
.mob-nav-kupon-fs {                                       /* fénycsík */
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
    transform: translateX(-120%);
}
[data-theme="dark"] .mob-nav-kupon-fs { background: linear-gradient(105deg, transparent 38%, rgba(167,139,250,.25) 50%, transparent 62%); }
.mob-nav-kupon-ic {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--kf-lila);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(var(--kf-lila-rgb), .35);
}
[data-theme="dark"] .mob-nav-kupon-ic { color: #1b1036; }
.mob-nav-kupon-tx { flex: 1; min-width: 0; }
.mob-nav-kupon-tx b {
    display: block;
    font-family: var(--fd);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--kf-lila);
}
.mob-nav-kupon-tx small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.mob-nav-kupon-tovabb {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--kf-lila-rgb), .45);
    color: var(--kf-lila);
    display: grid;
    place-items: center;
}
html.fx-ready .mob-nav-kupon-fs { animation: kfMenuFeny 4.5s ease-in-out 1s infinite; }
html.fx-ready .mob-nav-kupon-ic { animation: kfMenuBillen 3.2s var(--kf-spring) 1.2s infinite; }
@keyframes kfMenuFeny   { 0%, 65% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes kfMenuBillen { 0%, 80%, 100% { transform: none; } 86% { transform: rotate(-12deg) scale(1.08); } 93% { transform: rotate(6deg); } }

/* A lüktetés: szívverés + kifelé táguló gyűrű (a ::before a gyűrű – a gomb tartalma nem mozdul) */
.nav-kupon::before,
.nav-icon--kupon::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    pointer-events: none;
}
html.fx-ready .nav-kupon, html.fx-ready .nav-icon--kupon { animation: kfLilaBeat 2.8s ease-in-out 1s infinite; }
html.fx-ready .nav-kupon::before, html.fx-ready .nav-icon--kupon::before { animation: kfLilaRing 2.8s ease-out 1s infinite; }
html.fx-ready .nav-icon--kupon svg, html.fx-ready .nav-kupon-ic { transition: transform .45s var(--kf-spring); }
html.fx-ready .nav-kupon:hover .nav-kupon-ic, html.fx-ready .nav-icon--kupon:hover svg { transform: rotate(-14deg) scale(1.12); }
.nav-kupon:hover, .nav-kupon:hover::before, .nav-icon--kupon:hover, .nav-icon--kupon:hover::before,
.nav-kupon[aria-expanded="true"], .nav-kupon[aria-expanded="true"]::before,
.nav-icon--kupon[aria-expanded="true"], .nav-icon--kupon[aria-expanded="true"]::before { animation: none !important; }

/* ── 2. A fiók (drawer) ──────────────────────────────────── */
.kf-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 11, 13, .48);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .35s ease;
}
.kf-overlay.is-open { opacity: 1; }

.kf {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    width: min(var(--kf-w), 100vw);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .28);
    transform: translateX(104%);
    transition: transform .55s var(--kf-out);
    font-family: var(--fb);
    color: var(--text);
}
.kf.is-open { transform: none; }
/* A kuponfüzet „gerince”: lyukasztott sor a bal szélen */
.kf::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 84px;
    bottom: 84px;
    width: 6px;
    background: radial-gradient(circle at 3px 3px, var(--border) 2.2px, transparent 2.6px) 0 0 / 6px 22px repeat-y;
    opacity: .9;
    pointer-events: none;
}

.kf-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px 16px 24px;
    background:
        linear-gradient(135deg, var(--gold-dim2), transparent 70%),
        var(--surface);
    border-bottom: 2px dashed var(--border);
}
.kf-head-ic {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--gold);
    color: #fff;
    box-shadow: 0 6px 18px rgba(var(--gold-rgb), .35);
}
[data-theme="dark"] .kf-head-ic { color: #000; }
.kf.is-open .kf-head-ic { animation: kfWrench .9s var(--kf-spring) .15s both; }
.kf-head-txt { min-width: 0; flex: 1; }
.kf-title {
    font-family: var(--fd);
    font-weight: 900;
    font-size: 26px;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.kf-sub { margin-top: 4px; font-size: 13.5px; color: var(--text-2); }
.kf-sub b { color: var(--gold); font-weight: 700; }
.kf-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-3);
    cursor: pointer;
    transition: color .2s, border-color .2s, transform .35s var(--kf-spring);
}
.kf-close:hover { color: var(--gold); border-color: var(--gold); transform: rotate(90deg); }

/* Környezet-sáv (kosár összege / pénztár figyelmeztetés) */
.kf-context {
    padding: 12px 18px 12px 24px;
    font-size: 13px;
    color: var(--text-2);
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface-3);
}
.kf-context:empty { display: none; }
.kf-ctx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kf-ctx-row b { font-family: var(--fm); font-size: 12.5px; color: var(--text); }
.kf-ctx-active { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.kf-ctx-active code { font-family: var(--fm); color: var(--green); font-weight: 700; }
.kf-ctx-ok { display: inline-flex; color: var(--green); }
.kf-ctx-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(var(--gold-rgb), .35);
    background: var(--gold-dim);
    color: var(--text);
    line-height: 1.5;
}
.kf-ctx-note svg { flex: 0 0 auto; color: var(--gold); margin-top: 1px; }

.kf-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 16px 20px 26px;
}
.kf-sec { margin-top: 16px; }
.kf-sec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-family: var(--fd);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-3);
}
.kf-db {                                               /* a szakaszcím mellett: a kirajzolt kuponok száma */
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-2);
    font: 700 10px/19px var(--fm);
    letter-spacing: 0;
    text-align: center;
}
.kf-sec-title svg { color: var(--gold); }

/* ── 3. Szelvény-kártya ──────────────────────────────────── */
.kf-cardw {
    position: relative;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .07));
}
[data-theme="dark"] .kf-cardw { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); }
.kf-card {
    position: relative;
    display: grid;
    grid-template-columns: var(--kf-stub) minmax(0, 1fr);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    /* két félkör alakú bevágás a perforáció két végén */
    -webkit-mask:
        radial-gradient(circle 10px at var(--kf-stub) 0, #0000 97%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle 10px at var(--kf-stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
            mask:
        radial-gradient(circle 10px at var(--kf-stub) 0, #0000 97%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle 10px at var(--kf-stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
    transition: border-color .25s, box-shadow .25s, transform .3s var(--kf-out);
}
.kf-cardw:hover .kf-card { border-color: rgba(var(--gold-rgb), .55); transform: translateY(-2px); }

.kf-stub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 14px 6px;
    border-right: 2px dashed var(--border);
    background:
        repeating-linear-gradient(135deg, transparent 0 7px, rgba(var(--gold-rgb), .07) 7px 9px),
        linear-gradient(170deg, var(--gold-dim2), var(--gold-dim));
    border-radius: 14px 0 0 14px;
    transform-origin: 100% 50%;
}
.kf-val {
    font-family: var(--fd);
    font-weight: 900;
    font-size: 30px;
    line-height: 1;
    color: var(--gold);
    letter-spacing: .5px;
    white-space: nowrap;
}
.kf-val--long { font-size: 23px; }
.kf-val-lbl { font-family: var(--fm); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }

.kf-main { padding: 12px 14px 12px 16px; min-width: 0; }
.kf-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kf-name {
    font-family: var(--fd);
    font-weight: 800;
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.kf-src { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.kf-tag {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    font: 700 10px/1.6 var(--fm);
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.kf-tag--personal { background: rgba(37, 99, 235, .1); color: var(--blue); border: 1px solid rgba(37, 99, 235, .25); }
.kf-tag--active   { background: rgba(26, 122, 60, .1); color: var(--green); border: 1px solid rgba(26, 122, 60, .3); }

.kf-conds { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 6px; padding: 0; }
.kf-conds li {
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--surface-2);
    font-size: 11.5px;
    color: var(--text-2);
    white-space: nowrap;
}
.kf-conds .kf-brand {                                  /* arany márka-címke, egyszeri fénycsíkkal (C2-minta) */
    position: relative;
    overflow: hidden;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
}
[data-theme="dark"] .kf-conds .kf-brand { color: #000; }
.kf-conds .kf-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: kfBeamOnce 1.1s var(--kf-out) .6s both;
}

.kf-exp { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.kf-exp b { color: var(--text-2); font-weight: 600; }
.kf-exp--urgent b { color: var(--red); font-family: var(--fm); font-size: 11.5px; }
.kf-exp--urgent::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    animation: kfPingRed 1.6s ease-out infinite;
}

/* Kódsor: a kód (benne a másolás) + Beváltom */
.kf-coderow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }   /* a hosszú gomb (pénztár) alá tör – a kód sosem vágódik le */
.kf-codebox {
    position: relative;
    flex: 1 1 150px;
    min-width: 0;
    height: 34px;
    display: flex;
    align-items: center;
    border: 1.5px dashed rgba(var(--gold-rgb), .55);
    border-radius: 8px;
    background: var(--surface-3);
}
.kf-code {
    flex: 1;
    min-width: 0;
    padding: 0 9px;
    font: 700 13px/1 var(--fm);
    letter-spacing: .8px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kf-copy {
    position: relative;
    flex: 0 0 auto;
    width: 32px;
    height: 100%;
    display: grid;
    place-items: center;
    border: 0;
    border-left: 1.5px dashed rgba(var(--gold-rgb), .4);
    background: none;
    color: var(--text-3);
    cursor: pointer;
    transition: color .2s, transform .3s var(--kf-spring);
}
.kf-copy:hover { color: var(--gold); }
.kf-copy:active { transform: scale(.88); }
.kf-copy.is-done { color: var(--green); }
.kf-copy.is-done::after {                              /* „Másolva” buborék */
    content: 'Másolva';
    position: absolute;
    right: -4px;
    bottom: calc(100% + 7px);
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--text);
    color: var(--bg);
    font: 700 10px/1.4 var(--fm);
    white-space: nowrap;
    animation: kfTip .35s var(--kf-spring) both;
}
.kf-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    font: 700 12.5px/1 var(--fd);
    letter-spacing: .6px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, transform .3s var(--kf-spring);
}
.kf-btn:hover { border-color: var(--gold); color: var(--gold); }
.kf-btn:active { transform: scale(.95); }
.kf-btn--go { background: var(--gold); border-color: var(--gold); color: #fff; }
[data-theme="dark"] .kf-btn--go { color: #000; }
.kf-btn--go:hover { background: var(--gold-h); border-color: var(--gold-h); color: #fff; }
[data-theme="dark"] .kf-btn--go:hover { color: #000; }
.kf-btn--go .kf-arr { transition: transform .25s var(--kf-out); }
.kf-btn--go:hover .kf-arr { transform: translateX(3px); }
.kf-btn.is-done { border-color: var(--green); color: var(--green); }
.kf-btn--locked { background: var(--surface-2); color: var(--text-3); border-style: dashed; }
.kf-btn--locked:hover { color: var(--text-2); border-color: var(--text-4); }

.kf-msg { margin-top: 7px; font-size: 12px; line-height: 1.45; color: var(--red); }
.kf-msg:empty { display: none; }

/* Mérőszalag: mennyi hiányzik a minimumig */
.kf-tape { margin-top: 9px; }
.kf-tape-track {
    position: relative;
    height: 12px;
    border-radius: 3px;
    background: var(--surface-2);
    overflow: visible;
}
.kf-tape-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc(var(--p, 0) * 100%);
    border-radius: 3px 0 0 3px;
    background:
        repeating-linear-gradient(90deg, rgba(0,0,0,.45) 0 1px, transparent 1px 6px) 0 0 / 100% 45% no-repeat,
        repeating-linear-gradient(90deg, rgba(0,0,0,.55) 0 1px, transparent 1px 30px) 0 0 / 100% 75% no-repeat,
        linear-gradient(#f2c94c, #e0b13a);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
}
.kf-tape-case {                                        /* a mérőszalag háza a szalag végén */
    position: absolute;
    top: 50%;
    left: calc(var(--p, 0) * 100%);
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -4px;
    border-radius: 5px;
    background: linear-gradient(145deg, #3a3631, #1a1814);
    box-shadow: 0 2px 5px rgba(0,0,0,.3), inset 0 0 0 2px #f2c94c;
}
.kf-tape-case::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #f2c94c; }
.kf.is-open .kf-tape-fill { animation: kfTape 1.1s var(--kf-out) .35s both; }
.kf.is-open .kf-tape-case { animation: kfTapeCase 1.1s var(--kf-out) .35s both; }
.kf-tape-lbl { display: block; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.kf-tape-lbl b { font-family: var(--fm); color: var(--gold); }

/* Aktív (a kosárban lévő) kupon */
.kf-card--active { border: 2px solid var(--green); }
.kf-card--active .kf-stub { background: linear-gradient(170deg, rgba(26,122,60,.16), rgba(26,122,60,.06)); }
.kf-card--active .kf-val { color: var(--green); }

/* Zárolt (csak regisztráltaknak) – vendég nézet */
.kf-card--locked .kf-stub { filter: saturate(.55); }
.kf-card--locked .kf-code {
    filter: blur(4.5px);
    user-select: none;
    color: var(--text-3);
}
.kf-codebox--locked { border-color: var(--border); }
.kf-lock {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 7px;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    font: 700 10.5px/1.3 var(--fm);
    letter-spacing: .3px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    pointer-events: none;
}
.kf-lock svg { transform-origin: 50% 30%; }
.kf-cardw:hover .kf-lock svg, .kf-card.is-shake .kf-lock svg { animation: kfLock .8s ease-in-out; }

/* Pecsét + szikrák (sikeres beváltás) */
.kf-stamp {
    position: absolute;
    right: 18px;
    top: 50%;
    z-index: 3;
    padding: 4px 12px;
    border: 3px solid var(--green);
    border-radius: 6px;
    color: var(--green);
    font: 900 21px/1 var(--fd);
    letter-spacing: 3px;
    background: rgba(255,255,255,.08);
    transform: translateY(-50%) rotate(-11deg);
    opacity: 0;
    pointer-events: none;
}
.kf-cardw.is-stamped .kf-stamp { animation: kfStamp .7s var(--kf-spring) both, kfStampOut .5s ease 2.2s forwards; }
.kf-spark {
    position: absolute;
    right: 70px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    z-index: 2;
    pointer-events: none;
    animation: kfSpark .8s var(--kf-out) forwards;
}
.kf-spark:nth-child(odd) { background: var(--green); width: 4px; height: 4px; }

.kf-card.is-tearing .kf-stub { animation: kfTear .75s var(--kf-out); }
.kf-card.is-shake { animation: kfShake .5s ease; }

/* Csillanó helyőrző a betöltés alatt */
.kf-skel {
    height: 118px;
    margin-bottom: 12px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background:
        linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat,
        linear-gradient(90deg, var(--surface-2) 0 var(--kf-stub), var(--surface) var(--kf-stub));
    animation: kfShimmer 1.1s ease-in-out infinite;
}
[data-theme="dark"] .kf-skel {
    background:
        linear-gradient(100deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat,
        linear-gradient(90deg, var(--surface-2) 0 var(--kf-stub), var(--surface) var(--kf-stub));
}

/* Lépcsőzetes belépés */
.kf.is-open .kf-in { animation: kfCardIn .6s var(--kf-spring) both; animation-delay: calc(var(--i, 0) * 60ms + .12s); }

/* Vendég-felhívás: „Még jobb kuponokért regisztrálj” */
.kf-cta {
    position: relative;
    margin-top: 18px;
    padding: 16px 16px 16px 18px;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(120% 90% at 100% 0, rgba(255,255,255,.18), transparent 55%),
        linear-gradient(135deg, #c8902a, #8a5a12);
}
.kf-cta::after {                                       /* conic fénykeret */
    content: '';
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,255,255,.35) 80%, transparent 90%);
    animation: kfSpin 5s linear infinite;
    z-index: 0;
}
.kf-cta > * { position: relative; z-index: 1; }
.kf-cta::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 12px;
    background: linear-gradient(135deg, #c8902a, #8a5a12);
    z-index: 1;
}
.kf-cta-t { font: 900 21px/1.05 var(--fd); letter-spacing: .6px; text-transform: uppercase; }
.kf-cta-p { margin-top: 6px; font-size: 13px; line-height: 1.5; opacity: .92; }
.kf-cta-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.kf-cta-list li::before { content: '✓'; margin-right: 7px; font-weight: 700; }

/* Alsó, rögzített gombsor */
.kf-foot {
    display: flex;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.kf-foot .kf-btn { flex: 1; height: 44px; font-size: 14px; }

/* Toast */
.kf-toast {
    --kf-toast-from: 24px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: min(480px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 12px 14px 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    background: var(--surface);
    box-shadow: var(--sh-lg);
    color: var(--text);
    font-size: 14px;
}
.kf-toast.is-in { animation: kfToastIn .55s var(--kf-spring) both; }
.kf-toast-ic {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(26,122,60,.12);
    color: var(--green);
}
.kf-toast a { color: var(--gold); font-weight: 700; white-space: nowrap; }
.kf-toast small { color: var(--text-3); }

/* Üres állapot / betöltési hiba */
.kf-ures { padding: 22px 6px; text-align: center; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.kf-ures .kf-btn { margin-top: 12px; }

/* ── 4. Mobil ────────────────────────────────────────────── */
@media (max-width: 560px) {
    :root { --kf-stub: 84px; }
    .kf { width: 100vw; border-left: 0; }
    .kf::before { display: none; }
    .kf-head { padding: 14px 14px 12px 16px; }
    .kf-title { font-size: 23px; }
    .kf-body { padding: 4px 12px 18px; }
    .kf-context { padding: 10px 14px; }
    .kf-val { font-size: 26px; }
    .kf-val--long { font-size: 20px; }
    .kf-main { padding: 11px 11px 11px 13px; }
    .kf-coderow { flex-wrap: wrap; }
    .kf-codebox { flex: 1 1 100%; height: 38px; }
    .kf-coderow .kf-btn { flex: 1; height: 40px; font-size: 13.5px; }
    .kf-toast { --kf-toast-from: -24px; top: 12px; bottom: auto; }   /* a fiók alsó gombsora fölött ne takarjon */
}

/* ── 5. Keyframe-ek ──────────────────────────────────────── */
@keyframes kfBeamOnce { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes kfPingRed  { 0% { box-shadow: 0 0 0 0 rgba(192,57,43,.55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(192,57,43,0); } }
@keyframes kfLilaBeat { 0%, 22%, 100% { transform: scale(1); } 8% { transform: scale(1.06); } 15% { transform: scale(.985); } }
@keyframes kfLilaRing { 0% { box-shadow: 0 0 0 0 rgba(var(--kf-lila-rgb), .5); } 55%, 100% { box-shadow: 0 0 0 9px rgba(var(--kf-lila-rgb), 0); } }
@keyframes kfWrench   { 0% { transform: rotate(-90deg) scale(.4); opacity: 0; } 60% { transform: rotate(18deg) scale(1.1); opacity: 1; } 100% { transform: none; } }
@keyframes kfCardIn   { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes kfShimmer  { to { background-position: 250% 0, 0 0; } }
@keyframes kfTape     { from { width: 0; } }
@keyframes kfTapeCase { from { left: 0; } }
@keyframes kfStamp    { 0% { opacity: 0; transform: translateY(-50%) scale(2.2) rotate(-26deg); } 60% { opacity: 1; transform: translateY(-50%) scale(.9) rotate(-8deg); } 100% { opacity: 1; transform: translateY(-50%) rotate(-11deg); } }
@keyframes kfStampOut { to { opacity: 0; transform: translateY(-50%) scale(1.15) rotate(-11deg); } }
@keyframes kfSpark    { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }
@keyframes kfTear     { 0% { transform: none; } 35% { transform: translate(-6px, 3px) rotate(-9deg); } 65% { transform: translate(-2px, 1px) rotate(-3deg); } 100% { transform: none; } }
@keyframes kfShake    { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes kfLock     { 0%, 100% { transform: none; } 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }
@keyframes kfSpin     { to { transform: rotate(360deg); } }
@keyframes kfTip      { from { opacity: 0; transform: translateY(5px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes kfToastIn  { from { opacity: 0; transform: translateY(var(--kf-toast-from)) scale(.95); } to { opacity: 1; transform: none; } }

/* ── 6. Mozgás csak effektekkel; mozgáscsökkentés ──────────
   Az effects.js teszi a html elemre az fx-ready osztályt – a pénztárban, a visszaigazolón és kikapcsolt „Látványeffektek”
   mellett nincs: ott a fiók és minden része mozgás nélkül, azonnal jelenik meg (a minta „no-fx” nézete). */
html:not(.fx-ready) .kf, html:not(.fx-ready) .kf-overlay { transition: none; }
html:not(.fx-ready) .kf *, html:not(.fx-ready) .kf *::before, html:not(.fx-ready) .kf *::after,
html:not(.fx-ready) .kf-toast { animation: none !important; transition: none !important; }
html:not(.fx-ready) .kf-cta::after { display: none; }

@media (prefers-reduced-motion: reduce) {
    .kf, .kf-overlay, .kf *, .kf *::before, .kf *::after, .kf-toast,
    .nav-kupon, .nav-kupon::before, .nav-kupon *, .nav-icon--kupon, .nav-icon--kupon::before, .nav-icon--kupon *,
    .mob-nav-kupon * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .001ms !important;
    }
}
