:root {
  --y: #ffd92e; --y2: #ffe97a; --y3: #fff3b8; --ink: #3a3226; --muted: #7d725f; --cream: #fffbea; --card: #fff;
  --line: #efe6c8; --green: #3b8a4d; --green-bg: #e6f3e8; --red: #c0392b; --red-bg: #fbeae7; --blue-bg: #e8f0fb; --blue: #2f5fa8;
  --shadow: 0 1px 2px rgba(58, 50, 38, .06), 0 6px 20px rgba(58, 50, 38, .07);
  --r: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.45; font-size: 16px; }
h1, h2, h3, .serif { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -.01em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; }
.mt { margin-top: 14px; } .mt2 { margin-top: 24px; } .mb { margin-bottom: 14px; }

/* gombok */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 700; background: var(--y); color: var(--ink); box-shadow: 0 2px 0 #e0b800; transition: transform .08s, filter .15s; text-decoration: none; }
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.dark { background: var(--ink); color: var(--y); box-shadow: 0 2px 0 #1d1810; }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); box-shadow: none; }
.btn.danger { background: var(--red-bg); color: var(--red); box-shadow: none; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; border-radius: 11px; font-size: .88rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--y3); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.blue { background: var(--blue-bg); color: var(--blue); }
.chip.gray { background: #eee9d9; color: var(--muted); }

/* kártyák, űrlapok */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: 6px; }
label.f { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin: 12px 0 5px; }
input.i, select.i, textarea.i { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff; outline: none; }
input.i:focus, select.i:focus, textarea.i:focus { border-color: #e0b800; box-shadow: 0 0 0 3px var(--y3); }
.err { color: var(--red); font-weight: 600; font-size: .9rem; margin-top: 10px; }
.note { background: var(--y3); border-radius: 12px; padding: 11px 13px; font-size: .9rem; }
.note.green { background: var(--green-bg); } .note.red { background: var(--red-bg); }

/* logó, tojás */
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 1.15rem; }
.egg { width: 30px; height: 36px; flex: none; }

/* belépő */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--y); position: relative; overflow: hidden; }
.login::before, .login::after { content: ''; position: absolute; background: #fffbea; border-radius: 50% 50% 48% 48% / 62% 62% 38% 38%; }
.login::before { width: 420px; height: 520px; right: -140px; top: -120px; opacity: .85; transform: rotate(14deg); }
.login::after { width: 220px; height: 270px; left: -70px; bottom: -60px; opacity: .6; transform: rotate(-12deg); }
.login .box { position: relative; z-index: 1; background: #fff; border-radius: 26px; padding: 28px 24px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(58, 50, 38, .25); }
.login h1 { font-size: 2rem; line-height: 1.1; margin: 14px 0 8px; }
.login .opts { display: grid; gap: 10px; margin-top: 16px; }
.login .opt { text-align: left; display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 15px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; }
.login .opt small { display: block; font-weight: 500; color: var(--muted); }
.login .opt:hover { border-color: var(--y); background: var(--cream); }
.login .opt .em { font-size: 1.6rem; }

/* vásárlói app (telefon-keret nagy kijelzőn) */
body.cust { background: #f2ead0; }
.shell { max-width: 440px; margin: 0 auto; min-height: 100vh; background: var(--cream); position: relative; padding-bottom: 92px; }
@media (min-width: 700px) { .shell { margin: 26px auto; min-height: calc(100vh - 52px); border-radius: 34px; overflow: hidden; box-shadow: 0 30px 80px rgba(58, 50, 38, .25); border: 8px solid var(--ink); } }
.topbar { background: var(--y); padding: 18px 18px 22px; border-radius: 0 0 26px 26px; }
.topbar h1 { font-size: 1.6rem; margin-top: 12px; line-height: 1.15; }
.page { padding: 16px 16px 0; }
.nav { position: sticky; bottom: 0; margin-top: 24px; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); z-index: 20; }
@media (min-width: 700px) { .tabbar { bottom: 34px; width: 424px; border-radius: 0 0 26px 26px; } }
.tab { background: none; border: 0; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; font-size: .72rem; font-weight: 700; color: var(--muted); border-radius: 12px; position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--ink); background: var(--y3); }
.badge { position: absolute; top: 0; right: 22%; background: var(--red); color: #fff; font-size: .65rem; border-radius: 99px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; }
.hero { background: var(--ink); color: #fff; border-radius: 22px; padding: 20px; position: relative; overflow: hidden; }
.hero .d { font-family: 'Fraunces', Georgia, serif; font-size: 1.9rem; font-weight: 800; color: var(--y); line-height: 1.1; }
.hero .eggbg { position: absolute; right: -22px; top: -14px; width: 120px; opacity: .13; }
.stat { display: flex; gap: 18px; margin: 12px 0; }
.stat b { display: block; font-size: 1.25rem; font-family: 'Fraunces', Georgia, serif; }
.stat span { font-size: .78rem; color: #cfc6b0; }
.hist { display: grid; gap: 0; }
.hist .h { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hist .h:last-child { border: 0; }

/* léptető */
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0 8px; }
.stepper button { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--y); font-size: 1.8rem; font-weight: 800; box-shadow: 0 2px 0 #e0b800; }
.stepper button:disabled { opacity: .35; }
.stepper .n { font-family: 'Fraunces', Georgia, serif; font-size: 3rem; font-weight: 800; min-width: 110px; text-align: center; line-height: 1; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.quick button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 13px; font-weight: 700; }
.quick button.on { background: var(--ink); color: var(--y); border-color: var(--ink); }
.dots { display: flex; gap: 6px; margin-bottom: 14px; }
.dots i { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.dots i.on { background: var(--y); }
.opt-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; width: 100%; text-align: left; margin-top: 8px; font-weight: 700; }
.opt-row.on { border-color: #e0b800; background: var(--y3); }
.opt-row .rd { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.opt-row.on .rd { border-color: var(--ink); background: radial-gradient(var(--ink) 45%, transparent 50%); }
.opt-row small { display: block; font-weight: 500; color: var(--muted); }
.sum { display: grid; gap: 0; }
.sum .l { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sum .l.tot { border: 0; font-size: 1.25rem; font-weight: 800; font-family: 'Fraunces', Georgia, serif; }
.done { text-align: center; padding: 26px 8px; }
.done .big { font-size: 4.4rem; animation: hop .9s ease; display: inline-block; }
@keyframes hop { 0% { transform: translateY(-40px) scale(.6); opacity: 0; } 55% { transform: translateY(8px) scale(1.1); opacity: 1; } 100% { transform: none; } }

/* értesítések */
.notif { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border: 0; }
.notif .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--y); display: grid; place-items: center; flex: none; font-size: 1.2rem; }
.notif.un .ic { box-shadow: 0 0 0 3px var(--y3); }
.notif b { display: block; }

/* telepítő banner + útmutató */
.install { position: fixed; left: 50%; transform: translateX(-50%); bottom: 82px; width: calc(100% - 24px); max-width: 416px; background: var(--ink); color: #fff; border-radius: 18px; padding: 12px 14px; z-index: 25; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
@media (min-width: 700px) { .install { bottom: 118px; } }
.install b { color: var(--y); }
.install .x { background: none; border: 0; color: #fff; font-size: 1.3rem; opacity: .7; }
.modal-bg { position: fixed; inset: 0; background: rgba(40, 32, 20, .55); z-index: 50; display: grid; align-items: end; justify-items: center; }
@media (min-width: 700px) { .modal-bg { align-items: center; } }
.modal { background: var(--cream); width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; border-radius: 26px 26px 0 0; padding: 20px 18px 28px; animation: up .22s ease; }
@media (min-width: 700px) { .modal { border-radius: 26px; } }
.modal.wide { max-width: 720px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #eee9d9; padding: 4px; border-radius: 13px; margin: 12px 0; }
.seg button { border: 0; background: none; padding: 9px; border-radius: 10px; font-weight: 700; }
.seg button.on { background: #fff; box-shadow: var(--shadow); }
.gstep { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin-top: 18px; }
.gstep .no { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--y); display: grid; place-items: center; font-weight: 800; }
.gstep h4 { margin: 4px 0 8px; font-size: 1rem; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-top: 4px; position: relative; overflow: hidden; }
.mock .bar { display: flex; justify-content: space-around; align-items: center; background: #f4f1e8; border-radius: 12px; padding: 10px 6px; }
.mock .bar svg { width: 24px; height: 24px; color: #5a5448; }
.pulse { position: relative; }
.pulse::after { content: ''; position: absolute; inset: -8px; border: 3px solid #e63946; border-radius: 50%; animation: pulse 1.3s infinite; }
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.sheet-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-bottom: 1px solid #eee; font-size: .92rem; background: #fff; }
.sheet-item.hl { background: #fff3b8; outline: 3px solid #e63946; outline-offset: -3px; border-radius: 8px; font-weight: 700; }
.ios-alert { background: #f2f2f2; border-radius: 16px; text-align: center; max-width: 260px; margin: 0 auto; overflow: hidden; font-size: .88rem; }
.ios-alert p { padding: 14px 14px 12px; margin: 0; }
.ios-alert .bs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #d0d0d0; }
.ios-alert .bs div { padding: 11px; color: #0a7aff; }
.ios-alert .bs div + div { border-left: 1px solid #d0d0d0; font-weight: 700; }
.ios-alert .bs div.hl { outline: 3px solid #e63946; outline-offset: -3px; background: #fff3b8; }
.copybox { display: flex; gap: 8px; align-items: center; background: #fff; border: 1.5px dashed #d8c98a; border-radius: 13px; padding: 10px 12px; font-weight: 700; word-break: break-all; }

/* toast */
.toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: calc(100% - 24px); max-width: 420px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; border-radius: 15px; padding: 12px 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: up .22s ease; display: flex; gap: 10px; align-items: flex-start; pointer-events: auto; }
.toast.push { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.toast .ti { font-size: 1.3rem; }
.toast b { display: block; }
.toast.bad { background: var(--red); }

/* admin */
body.adm { background: #f6f1de; }
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.side .logo { color: var(--y); padding: 4px 8px 16px; }
.side .nv { display: flex; gap: 10px; align-items: center; background: none; border: 0; color: #e8dfc8; padding: 11px 12px; border-radius: 12px; text-align: left; font-weight: 600; }
.side .nv svg { width: 20px; height: 20px; flex: none; }
.side .nv:hover { background: rgba(255, 255, 255, .08); }
.side .nv.on { background: var(--y); color: var(--ink); }
.side .sp { flex: 1; }
.main { padding: 22px 26px 60px; max-width: 1180px; width: 100%; }
.main h2 { font-size: 1.7rem; margin-bottom: 4px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.kpi b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 1.8rem; line-height: 1.1; }
.kpi span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 13px; padding: 8px 13px; font-weight: 700; white-space: nowrap; }
.chips button small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.chips button.on { background: var(--ink); color: var(--y); border-color: var(--ink); }
.chips button.on small { color: #d9cfae; }
.tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fcf9ee; }
td { padding: 11px 14px; border-bottom: 1px solid #f4eed7; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: #fffaf0; }
td .actions { display: flex; gap: 6px; justify-content: flex-end; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.result { padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff; margin-top: 8px; width: 100%; text-align: left; display: block; }
.result:hover, .result.on { border-color: #e0b800; background: var(--y3); }
.admtop { display: none; }
.rowfld { display: grid; grid-template-columns: 150px 1fr 36px; gap: 8px; margin-top: 8px; align-items: center; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; }
  .side .logo, .side .sp { display: none; }
  .side .nv { white-space: nowrap; padding: 9px 11px; }
  .main { padding: 16px 14px 50px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
  .rowfld { grid-template-columns: 1fr; }
}

/* weboldal-minta */
.web { background: #fff; min-height: 100vh; }
.web .wb { background: var(--ink); color: #fff; padding: 10px 16px; font-size: .85rem; text-align: center; }
.web .wb b { color: var(--y); }
.web header { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 10px; }
.web nav { display: flex; gap: 18px; align-items: center; font-weight: 600; flex-wrap: wrap; }
.web .wh { background: var(--y); padding: 60px 22px; text-align: center; }
.web .wh h1 { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 720px; margin: 0 auto 12px; line-height: 1.05; }
.web .wcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; margin: 30px auto; padding: 0 16px; }
@media (max-width: 700px) { .web .wcols { grid-template-columns: 1fr; } }
.web .wform { max-width: 560px; margin: 0 auto; }

/* bemutató videók */
.login .vid-open { width: 100%; margin-top: 12px; background: var(--y3); border-color: #e0b800; }
.vidcard video { width: 100%; border-radius: 12px; background: #000; max-height: 60vh; }
