/* Mobil WC – letisztult, macOS-szerű megjelenés */
:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;
  --bg: #f5f5f7;
  --card: #ffffff;
  --sep: rgba(60, 60, 67, .12);
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .08);
  --blue: #007aff;
  --blue-tint: rgba(0, 122, 255, .1);
  --green: #28a745;
  --green-tint: rgba(52, 199, 89, .14);
  --orange: #c56a00;
  --orange-tint: rgba(255, 149, 0, .14);
  --red: #e5332a;
  --red-tint: rgba(255, 59, 48, .1);
  --radius: 12px;
  --shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
a { color: var(--blue); text-decoration: none; }
h1 { font-size: 28px; font-weight: 700; margin: 6px 0 14px; letter-spacing: -.02em; }
h2 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; letter-spacing: -.01em; }
p { line-height: 1.45; }

.i { width: 22px; height: 22px; flex: none; vertical-align: -5px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 17px; height: 17px; vertical-align: -3px; }
.i.lg { width: 44px; height: 44px; stroke-width: 1.2; }
.i.fill { fill: currentColor; stroke: none; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--sep);
}
.brand { display: flex; gap: 9px; align-items: center; font-weight: 600; font-size: 17px; color: var(--text); }
.brand img { border-radius: 7px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #c7c7cc; }
.live-dot.on { background: #34c759; }

main { max-width: 640px; margin: 0 auto; padding: 12px 16px 16px; }

.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-around;
  background: rgba(250, 250, 252, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--sep);
  padding: 6px 4px calc(4px + env(safe-area-inset-bottom));
}
.tabs a {
  flex: 1; text-align: center; font-size: 10.5px; font-weight: 500; color: var(--text-3);
  padding: 4px 2px; position: relative;
}
.tabs a .i { display: block; margin: 0 auto 2px; width: 25px; height: 25px; }
.tabs a.on { color: var(--blue); }
.tabs a .badge { position: absolute; top: 0; left: 55%; min-width: 18px; padding: 1px 5px; font-size: 11px; background: var(--red); color: #fff; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin: 10px 0;
}
.card.tap { cursor: pointer; display: block; color: var(--text); transition: background .15s; }
.card.tap:active { background: #f2f2f4; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.row > .badge, .row > .countdown { flex: none; white-space: nowrap; }
.row > h2, .row > b { min-width: 0; }
.muted { color: var(--text-2); font-size: 14px; }
.small { font-size: 13px; }
.big { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.center { text-align: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 11px 13px; border: .5px solid rgba(0, 0, 0, .15); border-radius: 10px; background: #fff;
  -webkit-appearance: none; appearance: none;
}
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; }
input:focus, select:focus, textarea:focus { outline: 3.5px solid rgba(0, 122, 255, .28); border-color: var(--blue); }
input:disabled { background: var(--fill-2); color: var(--text-2); }
input[type=range] { padding: 0; border: 0; accent-color: var(--blue); }
textarea { min-height: 88px; resize: vertical; }
.hint { font-size: 13px; color: var(--text-3); margin-top: 5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 12px 16px; border: 0; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
  background: var(--blue); color: #fff; transition: filter .15s, background .15s;
}
.btn:active { filter: brightness(.9); }
.btn.accent { background: var(--blue); color: #fff; }
.btn.ghost { background: var(--fill); color: var(--blue); }
.btn.danger { background: var(--red-tint); color: var(--red); }
.btn.sm { width: auto; padding: 8px 13px; font-size: 14px; border-radius: 8px; }
.grid2 .btn.sm { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btns { display: grid; gap: 10px; margin-top: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 13px; border-radius: 999px; border: 0; background: var(--fill);
  font: inherit; font-size: 14px; cursor: pointer; color: var(--text);
}
.chip.on { background: var(--blue); color: #fff; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button {
  padding: 12px; border-radius: 10px; border: .5px solid rgba(0, 0, 0, .12); background: #fff;
  font: inherit; cursor: pointer; text-align: left; color: var(--text);
}
.seg button b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.seg button span { font-size: 13px; color: var(--text-2); }
.seg button.on { border-color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--blue-tint); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--green-tint); color: var(--green);
}
.badge.warn { background: var(--orange-tint); color: var(--orange); }
.badge.gray { background: var(--fill); color: var(--text-2); }
.badge.red { background: var(--red-tint); color: var(--red); }
.badge .i { width: 13px; height: 13px; vertical-align: 0; stroke-width: 2; }

.countdown { font-variant-numeric: tabular-nums; font-weight: 600; }
.countdown.hot { color: var(--red); }

.map { height: 240px; border-radius: 10px; overflow: hidden; background: var(--fill-2); position: relative; z-index: 0; isolation: isolate; } /* a Leaflet rétegei ne kerüljenek a fejléc és az alsó menü fölé */
.map.small { height: 170px; }
.map .muted { padding-top: 70px; }

.offer { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 10px 0; }
.offer.best { box-shadow: 0 0 0 1.5px var(--blue), 0 1px 3px rgba(0, 0, 0, .04); }
.price { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }

.contract {
  white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; max-height: 50vh; overflow: auto;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 0; flex: none; -webkit-appearance: auto; appearance: auto; accent-color: var(--blue); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px; border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  font: inherit; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; text-align: left;
}
.action .i { color: var(--blue); width: 24px; height: 24px; }
.action:active { background: #f2f2f4; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; padding: 12px 0; border-bottom: .5px solid var(--sep); }
.timeline li:last-child { border-bottom: 0; }
.timeline .tl-ico { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.timeline .tl-ico .i { width: 17px; height: 17px; }
.timeline .tl-body { flex: 1; min-width: 0; }
.timeline img { max-width: 100%; border-radius: 10px; margin-top: 8px; }

.stars { display: flex; gap: 6px; }
.stars button { background: none; border: 0; cursor: pointer; padding: 0; color: #d1d1d6; }
.stars button .i { width: 34px; height: 34px; }
.stars button.on { color: #ffb800; }
.rating { color: #ffb800; letter-spacing: 1px; }

.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty .ico { color: #c7c7cc; margin-bottom: 6px; }
.empty .btn { max-width: 280px; }

.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: rgba(30, 30, 32, .92); color: #fff; padding: 11px 16px; border-radius: 12px; z-index: 50;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  max-width: calc(100% - 32px); font-size: 14px; font-weight: 500;
}
.toast.err { background: rgba(229, 51, 42, .95); }

.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; border-radius: 14px 14px 0 0; padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 40px rgba(0, 0, 0, .12); }
.modal::before { content: ''; display: block; width: 36px; height: 5px; border-radius: 3px; background: #d1d1d6; margin: -10px auto 14px; }

.hero { padding: 28px 4px 10px; }
.hero h1 { font-size: 32px; margin-bottom: 8px; }
.hero p { color: var(--text-2); margin: 0 0 6px; font-size: 17px; }
.hero .appicon { width: 72px; height: 72px; margin-bottom: 12px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .12)); }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list td, table.list th { padding: 9px 6px; border-bottom: .5px solid var(--sep); text-align: left; vertical-align: top; }
table.list th { font-size: 12px; font-weight: 500; color: var(--text-2); }
.stat { background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 24px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; margin-bottom: 4px; }

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #8e8e93; --bg: #000; --card: #1c1c1e;
    --sep: rgba(84, 84, 88, .55); --fill: rgba(120, 120, 128, .24); --fill-2: rgba(120, 120, 128, .16);
    --blue: #0a84ff; --blue-tint: rgba(10, 132, 255, .18); --green: #30d158; --orange: #ff9f0a; --red: #ff453a;
    --shadow: 0 0 0 .5px rgba(255, 255, 255, .06);
  }
  .top { background: rgba(28, 28, 30, .78); }
  .tabs { background: rgba(28, 28, 30, .85); }
  input, select, textarea, .seg button, .action, .offer, .contract, .stat, .modal { background-color: #1c1c1e; color: var(--text); border-color: rgba(255, 255, 255, .12); }
  .card.tap:active, .action:active { background: #2c2c2e; }
}

/* Nyitókép: videó, logó, majd beúszik a felület */
#splash { position: fixed; inset: 0; z-index: 100; background: radial-gradient(120% 80% at 50% 0%, #1d2a3a 0%, #0b0f14 70%); overflow: hidden; transition: opacity .6s ease; }
#splash .splash-scene { position: absolute; left: 0; right: 0; bottom: 6vh; width: 100%; height: min(40vh, 420px); }
#splash .row { animation: pan 2.2s ease-out both; }
#splash .cab { opacity: 0; transform: translateY(60px); animation: cabIn .5s cubic-bezier(.2,.9,.3,1.2) forwards; animation-delay: var(--d); }
#splash .bub { opacity: 0; transform: scale(.4); animation: bubIn .35s cubic-bezier(.2,.9,.3,1.4) forwards; animation-delay: var(--d); }
@keyframes pan { from { transform: translateX(60px); } to { transform: translateX(-60px); } }
@keyframes cabIn { to { opacity: 1; transform: none; } }
@keyframes bubIn { to { opacity: 1; transform: scale(1); } }
#splash .splash-shade { display: none; }
#splash .splash-brand { position: absolute; left: 0; right: 0; top: 18vh; text-align: center; color: #fff; z-index: 1; }
#splash .splash-name, #splash .splash-tag { opacity: 0; animation: brandIn .5s .15s ease forwards; }
#splash .splash-brand img { width: 11.4vh; height: 11.4vh; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
#splash .splash-name { font-size: 38px; font-weight: 700; letter-spacing: -.02em; margin-top: 14px; }
#splash .splash-tag { font-size: 17px; opacity: .85; margin-top: 6px; }
#splash.out { opacity: 0; pointer-events: none; }
@keyframes brandIn { to { opacity: 1; transform: none; } }
body.booting .top, body.booting main, body.booting .tabs { opacity: 0; }
.top, main, .tabs { transition: opacity .8s ease .15s; }
@media (prefers-reduced-motion: reduce) { #splash .row, #splash .cab, #splash .bub { animation: none; opacity: 1; transform: none; } #splash .splash-name, #splash .splash-tag { animation-duration: .01s; } }
.nosplash #splash { display: none; }

.viewsw { display: flex; gap: 2px; background: var(--fill); border-radius: 9px; padding: 2px; margin-left: auto; margin-right: 10px; }
.viewsw button { border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--text); padding: 5px 9px; border-radius: 7px; cursor: pointer; }
.viewsw button.on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
@media (prefers-color-scheme: dark) { .viewsw button.on { background: #3a3a3c; } }

/* belépési kód: 6 üres, szögletes mező */
.otp { position: relative; margin-top: 8px; }
.otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; color: transparent; caret-color: transparent; border: 0; background: none; z-index: 1; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-boxes span { height: 54px; border: 1.5px solid rgba(60, 60, 67, .22); border-radius: 10px; background: var(--card); color: var(--text); display: grid; place-items: center; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.otp-boxes span.cur { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }

/* alkotói jelölés a főképernyők alján */
.credit { text-align: center; font-size: 11px; color: var(--text-3); padding: 12px 16px 16px; letter-spacing: .01em; }
.credit a { color: inherit; text-decoration: none; font-weight: 600; }

/* számmezők: a böngésző saját fel/le nyilai nélkül (a − / + gombok elegendők) */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
