/* INFLULAND v3 — doplňky k původním stylům (css/orig.css).
   .v3 = obrazovky bez předlohy v původní aplikaci (poptávky aj.) — drží tokeny původní appky.
   .il-auth = přihlášení/registrace přes celou obrazovku jako v originále. */
:root {
  --bg: #05040a;
  --app: #0c0913;
  --card: #171421;
  --card-2: #221d31;
  --line: #31293f;
  --text: #f5f2ff;
  --muted: #a6a1b9;
  --dim: #7b748f;
  --accent: #7bddeb;
  --accent-grad: linear-gradient(135deg, #5ce1e6, #3b82f6);
  --ok: #4ce0b2;
  --danger: #ff3863;
  --warn: #ffc56b;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --tab-h: 64px;
}
[hidden] { display: none !important; }
.composer {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--app); border-top: 1px solid var(--line); display: flex; gap: 8px;
}
.composer input { flex: 1; background: var(--card); border: 0; border-radius: 999px; padding: 12px 16px; outline: 0; }
.composer .icon-btn { width: 44px; height: 44px; background: var(--accent-grad); }
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; animation: fade .2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88%; overflow-y: auto;
  background: var(--app); border-radius: 24px 24px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  animation: up .25s ease;
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.v3 button { border: 0; background: none; cursor: pointer; }
.v3 a { color: var(--accent); text-decoration: none; }
.v3 img { display: block; max-width: 100%; }
.v3 .icon-btn {
  width: 36px; height: 36px; border-radius: 999px; background: var(--card);
  display: grid; place-items: center; position: relative; flex-shrink: 0;
}
.v3 .icon-btn svg { width: 18px; height: 18px; }
.v3 .section { margin-top: 22px; }
.v3 .section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.v3 .section-head h2 { font-size: 18px; font-weight: 800; }
.v3 .section-head a { font-size: 13px; font-weight: 600; }
.v3 .muted { color: var(--muted); }
.v3 .small { font-size: 13px; }
.v3 .row { display: flex; align-items: center; gap: 10px; }
.v3 .between { justify-content: space-between; }
.v3 .stack > * + * { margin-top: 10px; }
.v3 .grow { flex: 1; min-width: 0; }
.v3 .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3 .search {
  display: flex; align-items: center; gap: 8px; background: var(--card);
  border-radius: var(--r-lg); padding: 11px 14px; color: var(--dim);
}
.v3 .search svg { width: 18px; height: 18px; flex-shrink: 0; }
.v3 .search input { flex: 1; border: 0; outline: 0; background: none; color: var(--text); }
.v3 .chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px; scrollbar-width: none; }
.v3 .chips::-webkit-scrollbar { display: none; }
.v3 .chip {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px; background: var(--card);
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.v3 .chip.active { background: var(--text); color: var(--app); }
.v3 .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: var(--r-md); font-weight: 700;
  background: var(--accent-grad); color: #fff; width: 100%;
}
.v3 .btn.secondary { background: var(--card-2); color: var(--text); }
.v3 .btn.ghost { background: none; color: var(--accent); }
.v3 .btn.danger { background: rgba(255, 56, 99, .14); color: var(--danger); }
.v3 .btn.sm { height: 36px; padding: 0 14px; font-size: 13px; width: auto; border-radius: var(--r-sm); }
.v3 .btn-row { display: flex; gap: 10px; }
.v3 .btn-row .btn { flex: 1; }
.v3 .field { display: block; margin-top: 14px; }
.v3 .field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.v3 .input, .v3 .field input, .v3 .field select, .v3 .field textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; outline: 0; color: var(--text);
}
.v3 .field textarea { min-height: 96px; resize: vertical; }
.v3 .field input:focus, .v3 .field select:focus, .v3 .field textarea:focus { border-color: var(--accent); }
.v3 .check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--muted); }
.v3 .check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; }
.v3 .seg { display: flex; background: var(--card); border-radius: var(--r-md); padding: 4px; gap: 4px; }
.v3 .seg button { flex: 1; padding: 9px; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; font-size: 14px; }
.v3 .seg button.active { background: var(--card-2); color: var(--text); }
.v3 .seg label { color: var(--muted); font-weight: 600; font-size: 14px; }
.v3 .seg label.active { background: var(--card-2); color: var(--text); }
.v3 label.chip { cursor: pointer; }
.v3 .card { background: var(--card); border-radius: var(--r-lg); padding: 14px; }
.v3 .card + .card { margin-top: 10px; }
.v3 .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v3 .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.v3 .tile { background: var(--card); border-radius: var(--r-lg); overflow: hidden; position: relative; display: block; color: inherit; }
.v3 .tile-img { aspect-ratio: 4/5; background: var(--card-2) center/cover; position: relative; }
.v3 .tile-img.wide { aspect-ratio: 16/10; }
.v3 .tile-body { padding: 10px 12px 12px; }
.v3 .tile-title { font-weight: 700; font-size: 15px; }
.v3 .tile-sub { font-size: 12px; color: var(--muted); }
.v3 .tile-tag {
  position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 999px;
  background: rgba(12, 9, 19, .78); font-size: 11px; font-weight: 700;
}
.v3 .tile-tag.right { left: auto; right: 8px; }
.v3 .tile-tag.hot { background: var(--danger); }
.v3 .fav {
  position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 999px;
  background: rgba(12, 9, 19, .7); display: grid; place-items: center; color: #fff;
}
.v3 .fav svg { width: 16px; height: 16px; }
.v3 .fav.on { color: var(--danger); }
.v3 .fav.on svg { fill: currentColor; }
.v3 .list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; }
.v3 .list-item:last-child { border-bottom: 0; }
.v3 .avatar { width: 46px; height: 46px; border-radius: 999px; background: var(--card-2) center/cover; flex-shrink: 0; }
.v3 .avatar.lg { width: 84px; height: 84px; }
.v3 .avatar.sq { border-radius: var(--r-sm); }
.v3 .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--accent); flex-shrink: 0; }
.v3 .stat { background: var(--card); border-radius: var(--r-md); padding: 12px; }
.v3 .stat b { display: block; font-size: 20px; font-weight: 800; }
.v3 .stat span { font-size: 12px; color: var(--muted); }
.v3 .status { font-size: 12px; font-weight: 700; color: var(--muted); }
.v3 .status.ok { color: var(--ok); }
.v3 .status.wait { color: var(--warn); }
.v3 .status.bad { color: var(--danger); }
.v3 .hero { border-radius: var(--r-lg); padding: 18px; background: var(--accent-grad); color: #fff; }
.v3 .hero h3 { font-size: 20px; font-weight: 800; }
.v3 .hero p { opacity: .9; font-size: 14px; margin-top: 4px; }
.v3 .cover { aspect-ratio: 16/10; border-radius: var(--r-lg); background: var(--card-2) center/cover; margin: 0 -4px; }
.v3 .kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.v3 .kv dt { color: var(--muted); }
.v3 .kv dd { text-align: right; font-weight: 600; }
.v3 .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.v3 .tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--card-2); color: var(--muted); }
.v3 .empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.v3 .empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.v3 .chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 80px; }
.v3 .bubble { max-width: 80%; padding: 10px 13px; border-radius: 16px; background: var(--card); font-size: 14px; }
.v3 .bubble.me { align-self: flex-end; background: #3b4fd8; }
.v3 .bubble time { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.v3 .bubble.system { align-self: center; background: none; color: var(--muted); font-size: 12px; text-align: center; }
.v3 .offer-msg { border: 1px solid var(--line); background: var(--card-2); }
.v3 .auth { padding: 0 24px; display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
.v3 .auth-logo { width: 190px; height: auto; }
.v3 .auth p.lead { color: var(--muted); margin: 6px 0 24px; }
.v3 .auth .btn { margin-top: 22px; }
.v3 .auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.v3 .hint { margin-top: 26px; font-size: 12px; color: var(--dim); text-align: center; }
.v3 .error { color: var(--danger); font-size: 13px; margin-top: 10px; }
.v3 .qr { width: 220px; height: 220px; margin: 16px auto; background: #fff; border-radius: var(--r-md); padding: 14px; }
.v3 .qr svg { width: 100%; height: 100%; }
.v3 .code { font: 700 22px/1 ui-monospace, Menlo, monospace; letter-spacing: 4px; text-align: center; }
.v3 .map { height: 200px; border-radius: var(--r-lg); background: var(--card-2); display: grid; place-items: center; color: var(--dim); }
.v3 .progress { height: 6px; border-radius: 9px; background: var(--card-2); overflow: hidden; }
.v3 .progress i { display: block; height: 100%; background: var(--accent-grad); }
.il-auth { position: fixed; inset: 0; z-index: 50; overflow-y: auto; }
.screen { -webkit-overflow-scrolling: touch; }
.tab-btn { text-decoration: none; position: relative; }
.header-notif-btn { text-decoration: none; }
.v3 { color: #fff; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.il-sheet-body { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; color: #fff; }
.il-sheet-body h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
/* odkazy ve stylu tlačítek originálu */
a.offer-cta, a.udcard__btn-redeem, a.ud-empty__btn, a.ud-filter__btn, a.cta-btn { display: block; text-align: center; text-decoration: none; }
a.ud-filter__btn { display: inline-block; }
a.list-item { color: #fff; text-decoration: none; }
.il-auth.il-v3 { background: #0c0913; max-width: 430px; margin: 0 auto; }

/* ===== .v3 = obrazovky bez předlohy (poptávky, pomocné panely) ve tvaru komponent originálu ===== */
.v3 { font-size: 15px; }
.v3 .btn { height: auto; padding: 12px 28px; border-radius: 50px; background: #7bddeb; color: #000; font-size: 15px; font-weight: 700; }
.v3 .btn.secondary { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.12); }
.v3 .btn.ghost { background: none; color: #7bddeb; }
.v3 .btn.danger { background: transparent; color: #ffb4b4; border: 1px solid rgba(255,180,180,0.35); }
.v3 .btn.sm { padding: 8px 16px; font-size: 13px; border-radius: 50px; height: auto; }
.v3 .btn[disabled] { opacity: .45; }
.v3 .chip { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #fff; font-size: 14px; font-weight: 400; }
.v3 .chip.active { background: linear-gradient(135deg, #5ce1e6, #3b82f6); color: #000; border-color: transparent; }
.v3 .seg { background: none; padding: 0; gap: 8px; }
.v3 .seg button, .v3 .seg label { padding: 7px 16px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.v3 .seg button.active, .v3 .seg label.active { background: #7bddeb; border-color: #7bddeb; color: #000; }
.v3 .card, .v3 .tile, .v3 .stat { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; }
.v3 .hero { background: linear-gradient(135deg, #1d2a35 0%, #15202a 100%); border-radius: 18px; color: #fff; }
.v3 .hero h3 { color: #7bddeb; }
.v3 .field > span { font-size: 14px; color: #fff; margin: 26px 0 0; }
.v3 .field input, .v3 .field select, .v3 .field textarea { margin-top: 10px; background: rgba(90,85,110,0.35); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 14px 16px; font-size: 16px; color: #f5f2ff; }
.v3 .field input:focus, .v3 .field select:focus, .v3 .field textarea:focus { border-color: rgba(37,199,237,0.55); }
.v3 .check input { accent-color: #7bddeb; }
.v3 .status.ok { color: #4ce0b2; } .v3 .status.wait { color: #ffc56b; } .v3 .status.bad { color: #ffb4b4; }
.v3 .list-item { border-bottom: solid 1px #25202a; }
.v3 .muted { color: rgba(255,255,255,0.6); }
.v3 .section-head h2, .il-sheet-body h2 { font-weight: 700; }
.v3 .tags span { background: rgba(255,255,255,0.08); color: #fff; }
.v3 .progress i { background: #7bddeb; }
.v3 a { color: #7bddeb; }
.v3 .btn, .v3 a.btn { color: #000; }
.v3 .btn.secondary, .v3 a.btn.secondary { color: #fff; }

/* ===== Zprávy: panel, avatar, karty nabídek (14. 11. 2026) ===== */
.il-sheet .sheet-handle { width: 60px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.7); margin: 10px auto 0; flex-shrink: 0; }
.il-sheet .sheet-handle + .il-sheet-body { padding-top: 16px; }
.il-sheet-body .sheet-lead { font-size: 14px; line-height: 1.5; opacity: .8; margin: 4px 0 16px; }
.chat-header .chat-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #4fcdde; opacity: 1; }
.chat-header .chat-avatar img, .chat-header .chat-avatar .peer-avatar { width: 46px !important; height: 46px !important; border-radius: 50%; object-fit: cover !important; }
.msg-btn-offer.msg-btn-sm { padding: 9px 12px; font-size: 13px; line-height: 1.25; margin-top: 8px; width: 100%; }
.msg-btn-pair { display: flex; gap: 8px; }
.msg-btn-pair .msg-btn-offer { flex: 1; }
.msg-state { font-weight: 700; margin: 4px 0 2px; color: var(--accent); }
.msg-state.bad { color: #ffb4b4; }
.msg-custom-label { font-size: 13px; opacity: .75; font-weight: 600; }
.msg-custom-price { font-size: 22px; font-weight: 800; margin: 2px 0 8px; }
.msg-custom-price span { font-size: 12px; font-weight: 500; opacity: .6; margin-left: 6px; }
.msg-custom-note { font-size: 13px; opacity: .8; }
.msg-inline-img { display: block; max-width: 100%; border-radius: 12px; margin-top: 8px; cursor: zoom-in; min-height: 40px; background: rgba(255,255,255,.05); }
.msg-file { display: inline-block; margin-top: 8px; color: var(--accent); text-decoration: none; font-weight: 600; }
/* rozmazané pozadí pod spodními panely */
.detail-overlay, .offer-detail-overlay { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(0,0,0,0.45); }

/* detail poptávky — bloky bez borderů */
.v3 .card, .v3 .tile, .v3 .stat { border: none; }
.v3 .dm-desc { font-size: 15px; line-height: 1.5; white-space: pre-line; margin: 0 0 14px; }
.v3 .dm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v3 .dm-fact { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.v3 .dm-label { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.v3 .dm-val { font-size: 14px; font-weight: 600; line-height: 1.4; }
.v3 .dm-line { margin-top: 14px; }
.v3 .dm-line .dm-val { font-weight: 500; }
.v3 .dm-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.v3 .dm-meta .dm-fact { background: none; padding: 4px 2px; }

.ugc-ref-item.dragging { opacity: .6; }
.ugc-ref-handle { touch-action: none; cursor: grab; }
.discount-qr-wrap .qr svg { width: 100%; height: auto; display: block; background: #fff; border-radius: 12px; }

/* ---------- 3.6: tvůrci — bez rámečků, mapa, štítky, žádosti ---------- */
/* rámečky se v aplikaci nepoužívají (tlačítka, záložky, čipy, karty, štítky) */
#app *:not(.deals-spinner):not(.leaflet-container *), #app *::before, #app *::after { border-color: transparent !important; }
.deal-approval-notice { margin: 14px 0 8px !important; line-height: 1.4; }
.offer-buttons .deal-approval-notice:first-child { margin-top: 0 !important; }

.card-tag { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 8px; margin-bottom: 6px;
  border-radius: 8px; background: rgba(255,255,255,0.16); color: rgba(255,255,255,0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.filter-chip .chip-clear { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 2px;
  border-radius: 50%; background: rgba(0,0,0,0.18); font-size: 10px; line-height: 1; }

.map-wrap { position: relative; }
.il-map { height: calc(100dvh - 260px); min-height: 320px; border-radius: 16px; overflow: hidden; background: #1f1d29; }
.il-pin { color: #5ce1e6; background: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.map-count { position: absolute; left: 12px; bottom: 10px; z-index: 500; font-size: 12px; color: rgba(255,255,255,.75); background: rgba(20,18,28,.7); padding: 4px 8px; border-radius: 8px; }
.map-fail { display: grid; place-items: center; height: 100%; color: rgba(255,255,255,.7); font-size: 14px; padding: 20px; text-align: center; }
.leaflet-container .leaflet-control-attribution { background: rgba(20,18,28,.7); color: rgba(255,255,255,.5); font-size: 9px; }
.leaflet-container .leaflet-control-attribution a { color: rgba(255,255,255,.6); }

/* přepínače menší, zamčený (systémové informace) vizuálně vypnutý */
.toggle { transform: scale(.82); transform-origin: right center; }
.toggle-input:disabled + .toggle { opacity: .4; cursor: not-allowed; filter: grayscale(1); }

/* oblast působnosti a žádost o změnu sledujících */
.area-chips { margin: 0; padding: 0; flex-wrap: wrap; }
.area-chips .chip-x { font-size: 10px; opacity: .7; margin-left: 4px; }
.area-add { display: flex; gap: 8px; margin-top: 10px; }
.area-input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; }
.area-add-btn { height: 42px; padding: 0 16px; border-radius: 12px; background: rgba(255,255,255,0.14); color: #fff; font-weight: 600; font-size: 14px; }
.reach-pending { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; background: rgba(245,166,35,0.14); font-size: 13px; line-height: 1.4; }
.reach-pending b { color: #f5c46b; }

/* popis dealu z nastavení nabídky */
.offer-note-full p { margin: 0 0 8px; }
.offer-note-full ul, .offer-note-full ol { margin: 0 0 8px 18px; }
.offer-note-full a { color: #5ce1e6; }

/* chyba — přátelská obrazovka */
.oops { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 24px; gap: 10px; }
.oops-emoji { font-size: 56px; line-height: 1; }
.oops-title { font-size: 22px; font-weight: 800; margin: 8px 0 0; }
.oops-text { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.5; max-width: 300px; margin: 0; }
.oops-btn { margin-top: 14px; height: 48px; padding: 0 28px; border-radius: 999px; background: #5ce1e6; color: #000; font-weight: 700; font-size: 15px; }
.oops-link { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 6px; }
.login-hint { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(245,166,35,0.14); font-size: 13px; line-height: 1.45; text-align: left; }
.login-hint a { color: #5ce1e6; }

/* Notifikace: hromadné přečtení, čas */
.notif-actions { display: flex; justify-content: flex-end; padding: 4px 16px 0; }
.notif-readall { background: none; border: 0; color: var(--accent, #5ce1e6); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 0; cursor: pointer; }
.notif-time { font-size: 11px; opacity: .6; margin-top: 2px; }
/* Nepřečtené upozornění: jednoduchá modrá tečka (jako u zpráv) */
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #5ce1e6); box-shadow: none; display: inline-block; flex: 0 0 auto; margin-left: 12px; align-self: center; }
