/* Live app mockups on the landing page — non-interactive */
.tilt { perspective: 1100px; display: flex; justify-content: center; }
.tilt > [data-mock] { transition: transform .25s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; will-change: transform; position: relative; }
[data-mock] { pointer-events: none; user-select: none; }
.tilt { pointer-events: auto; }

.mk-app { width: 360px; height: 600px; display: flex; flex-direction: column; background: rgba(17,17,22,.96); border: 1px solid rgba(255,255,255,.09); border-radius: 22px; overflow: hidden; box-shadow: 0 34px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(139,123,255,.08); font-size: 13.5px; color: #f2f2f5; text-align: left; }
.mk-title { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; color: #8e8e9a; flex: none; }
.mk-title b { color: #e8e8ee; font-size: 12.5px; }
.mk-live { width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; margin-right: -4px; }
.mk-sp { flex: 1; }
.mk-sep { width: 1px; height: 16px; background: rgba(255,255,255,.1); }
.mk-ic { flex: none; display: block; }
.mk-pi { flex: none; vertical-align: -4px; margin-right: 6px; }

.mk-chat { flex: 1; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 18%); mask-image: linear-gradient(transparent, #000 18%); }
.mk-chat.dim { filter: brightness(.55); }
.mk-list { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px 6px; display: flex; flex-direction: column; }
.mk-row { overflow: hidden; transition: height .38s cubic-bezier(.2,.8,.2,1); }
.mk-row > * { opacity: 0; transform: translateY(8px); transition: opacity .35s ease .1s, transform .35s ease .1s; }
.mk-row.in > * { opacity: 1; transform: none; }
.mk-msg { padding: 4px 4px; line-height: 1.45; margin-bottom: 2px; }
.mk-msg b { font-weight: 700; }
.mk-role { display: inline-flex; width: 16px; height: 16px; padding: 2.5px; border-radius: 4px; vertical-align: -3px; margin-right: 5px; }
.mk-role svg { width: 100%; height: 100%; display: block; }
.mk-ev { margin: 4px 0; padding: 8px 10px; border-radius: 11px; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.mk-ev .mk-pi { margin-right: 0; }
.mk-ev.don { background: linear-gradient(90deg, rgba(255,166,0,.24), rgba(255,166,0,.06)); box-shadow: inset 3px 0 0 #ffa600; }
.mk-ev.sub { background: linear-gradient(90deg, rgba(139,123,255,.24), rgba(139,123,255,.06)); box-shadow: inset 3px 0 0 #8b7bff; }
.mk-evl { color: #9a9aa6; font-size: 12px; }
.mk-amt { margin-left: auto; font-weight: 800; color: #ffc04d; }
.mk-evt { width: 100%; margin-top: 2px; color: #e2e2ea; }

.mk-comp { display: flex; gap: 8px; padding: 6px 12px; flex: none; }
.mk-target { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #8b7bff; flex: none; }
.mk-input { flex: 1; height: 38px; border-radius: 19px; background: rgba(255,255,255,.08); display: flex; align-items: center; padding: 0 14px; color: #6b6b76; }
.mk-bar { display: flex; gap: 6px; padding: 4px 12px 12px; flex: none; }
.mk-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 9px 0 6px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.mk-chip .mk-pi { margin-right: 5px; vertical-align: 0; }
.mk-chip.sel { border-color: #8b7bff; padding-left: 9px; }
.mk-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; margin-right: 6px; }

/* user card */
.mk-card { position: absolute; left: 26px; right: 26px; top: 70px; background: #1c1c23; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.55); padding: 4px 6px 6px; }
.mk-app { position: relative; }
.mk-ch { display: flex; align-items: center; gap: 9px; padding: 10px 6px 8px 8px; }
.mk-ch b { display: block; font-size: 14px; }
.mk-ch small { color: #9a9aa6; font-size: 11.5px; }
.mk-grow { flex: 1; min-width: 0; }
.mk-av { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.mk-avb { position: absolute; right: -4px; bottom: -4px; border: 2px solid #1c1c23; border-radius: 6px; display: flex; }
.mk-avb .mk-pi { margin: 0; }
.mk-ib { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #9a9aa6; flex: none; }
.mk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 4px 4px; }
.mk-stats div { background: rgba(255,255,255,.08); border-radius: 9px; padding: 5px 8px; }
.mk-stats b { display: block; font-size: 12px; }
.mk-stats small { color: #9a9aa6; font-size: 10.5px; }
.mk-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; transition: background .25s; font-size: 13px; }
.mk-item .mk-ic { color: #9a9aa6; }
.mk-item i { margin-left: auto; color: #6b6b76; }
.mk-item.hl { background: rgba(255,255,255,.08); }
.mk-item.danger, .mk-item.danger .mk-ic { color: #ff5b6b; }
.mk-msep { height: 1px; background: rgba(255,255,255,.08); margin: 3px 6px; }

/* telegram */
.mk-tg { width: 380px; height: 600px; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #0e1621; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 34px 90px rgba(0,0,0,.6); text-align: left; font-size: 14px; color: #f5f5f5; }
.mk-tgh { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #17212b; flex: none; }
.mk-tgh b { display: block; font-size: 14.5px; }
.mk-tgh small { color: #7f91a4; font-size: 12px; }
.mk-tgav { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #8b7bff, #ff5fa8); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.mk-tgfeed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px; background-color: #0e1621; background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 16px 16px; }
.mk-bub { position: relative; max-width: 300px; background: #182533; border-radius: 14px 14px 14px 4px; padding: 8px 11px 18px; line-height: 1.42; }
.mk-bub.img { padding: 0 0 18px; overflow: hidden; }
.mk-tm { position: absolute; right: 9px; bottom: 4px; font-size: 11px; color: #6d8095; }
.mk-btxt { padding: 9px 11px 0; }
.mk-cover { height: 150px; position: relative; background: radial-gradient(circle at 25% 30%, #8b7bff 0, transparent 55%), radial-gradient(circle at 80% 70%, #ff5fa8 0, transparent 55%), linear-gradient(135deg, #2b1f5c, #4a1d4a); padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; }
.mk-cover-live { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: #e5374b; color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; transition: background .5s; }
.mk-cover-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: mkPulse 1.4s infinite; }
.mk-cover-live.off { background: rgba(0,0,0,.45); }
.mk-cover-live.off i { animation: none; opacity: .6; }
.mk-cover-t { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.mk-cover-s { font-size: 12px; color: rgba(255,255,255,.85); display: flex; align-items: center; margin-top: 4px; }
@keyframes mkPulse { 50% { opacity: .3; } }
.mk-state { transition: color .4s; }
.mk-ended { color: #9fb1c4; }
.mk-tgbtn { max-width: 300px; margin-top: 4px; background: rgba(24,37,51,.9); border-radius: 9px; text-align: center; padding: 9px; font-weight: 600; font-size: 13.5px; display: flex; justify-content: center; align-items: center; gap: 6px; transition: opacity .5s, max-height .5s, margin .5s, padding .5s; max-height: 40px; overflow: hidden; }
.mk-tgbtn.gone { opacity: 0; max-height: 0; margin: 0; padding: 0 9px; }
.mk-post { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.mk-post.in { opacity: 1; transform: none; }
.mk-post.out { opacity: 0; transform: translateY(-8px); }

@media (max-width: 900px) {
  .mk-app, .mk-tg { width: min(360px, 100%); height: 540px; }
}
