/* =========================================================================
   Chotam animated iPhone banner mockup
   -------------------------------------------------------------------------
   Drop-in styles for the .ei-banner-mbl-mockup block on any landing page.
   Requires Font Awesome 5 (already loaded on chotam.ru landings) and the
   Roboto font (already loaded via app-landing.css).
   Pair with assets/js/chotam-phone-mockup.js.
   ========================================================================= */

/* ------- Phone container ------- */
.ei-banner-mbl-mockup {
  position: absolute;
  top: -20px;
  right: 0;
  width: 380px;
  height: 780px;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}

/* Hide the whole block on mobile / tablet */
@media (max-width: 991px) {
  .ei-banner-mbl-mockup { display: none; }
}

/* ------- Phone (tilted + swaying) ------- */
.ei-banner-mbl-mockup .phone {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: chotamPhoneSway 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes chotamPhoneSway {
  0%   { transform: rotateY(-14deg) rotateX(6deg) rotateZ(-3deg) translateY(0px); }
  50%  { transform: rotateY(-10deg) rotateX(4deg) rotateZ(-2deg) translateY(-8px); }
  100% { transform: rotateY(-14deg) rotateX(6deg) rotateZ(-3deg) translateY(0px); }
}

/* Space Gray / Natural Titanium body */
.ei-banner-mbl-mockup .phone-body {
  position: absolute;
  inset: 0;
  border-radius: 58px;
  background: linear-gradient(135deg, #3a3c40 0%, #4a4d52 40%, #2a2c30 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.6),
    inset 2px 2px 2px rgba(255,255,255,0.12),
    inset -2px -2px 2px rgba(0,0,0,0.4),
    -30px 40px 60px rgba(0,0,0,0.35),
    -10px 20px 30px rgba(0,0,0,0.2);
  padding: 14px;
  box-sizing: border-box;
}

/* Side buttons */
.ei-banner-mbl-mockup .btn-volume-up,
.ei-banner-mbl-mockup .btn-volume-down,
.ei-banner-mbl-mockup .btn-action,
.ei-banner-mbl-mockup .btn-power {
  position: absolute;
  background: linear-gradient(90deg, #2a2c30, #5a5d62 50%, #1e2024);
  border-radius: 2px;
}
.ei-banner-mbl-mockup .btn-action      { left: -2px; top: 120px; width: 3px; height: 30px; }
.ei-banner-mbl-mockup .btn-volume-up   { left: -2px; top: 180px; width: 3px; height: 50px; }
.ei-banner-mbl-mockup .btn-volume-down { left: -2px; top: 240px; width: 3px; height: 50px; }
.ei-banner-mbl-mockup .btn-power       { right: -2px; top: 180px; width: 3px; height: 90px; }

/* Screen */
.ei-banner-mbl-mockup .phone-screen {
  position: absolute;
  inset: 14px;
  border-radius: 46px;
  background: #e9edf2;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px #0a0a0a;
}
.ei-banner-mbl-mockup .phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.8), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(255,255,255,0.6), transparent 45%),
    linear-gradient(180deg, #eef2f6 0%, #e6ebf0 100%);
}

/* Dynamic Island */
.ei-banner-mbl-mockup .dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}
.ei-banner-mbl-mockup .dynamic-island::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3a4658 0%, #0a0d12 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Status bar */
.ei-banner-mbl-mockup .status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  font-family: "SF Pro Display", "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0a0a0a;
  z-index: 5;
}
.ei-banner-mbl-mockup .status-bar .time  { padding-top: 14px; }
.ei-banner-mbl-mockup .status-bar .icons { padding-top: 14px; display: flex; gap: 5px; align-items: center; font-size: 13px; }

/* Chat header */
.ei-banner-mbl-mockup .chat-header {
  position: absolute;
  top: 58px; left: 0; right: 0;
  height: 56px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 4;
}
.ei-banner-mbl-mockup .chat-header .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #FFA300, #ff7a00);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
.ei-banner-mbl-mockup .chat-header .meta { flex: 1; line-height: 1.2; }
.ei-banner-mbl-mockup .chat-header .meta .name   { font-size: 13px; font-weight: 600; color: #0a0a0a; }
.ei-banner-mbl-mockup .chat-header .meta .status { font-size: 11px; color: #6b7280; }
.ei-banner-mbl-mockup .chat-header .net-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px;
  transition: background 0.4s;
}

/* Home indicator */
.ei-banner-mbl-mockup .home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  background: #0a0a0a;
  border-radius: 3px;
  opacity: 0.9;
}

/* ------- Bubbles floating above the phone ------- */
.ei-banner-mbl-mockup .chat-body {
  position: absolute;
  left: -30px;
  right: 10px;
  top: 200px;
  bottom: 200px;
  pointer-events: none;
  z-index: 20;
}
.ei-banner-mbl-mockup .pair {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.ei-banner-mbl-mockup .pair.active { opacity: 1; }

.ei-banner-mbl-mockup .bubble {
  max-width: 80%;
  padding: 20px 26px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  font-family: "Roboto", sans-serif;
  opacity: 0;
  transform: translateY(12px) scale(0.94);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.2,.9,.3,1.2);
  word-wrap: break-word;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 3px 6px rgba(0, 0, 0, 0.12);
}
.ei-banner-mbl-mockup .bubble.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ei-banner-mbl-mockup .bubble.q { align-self: flex-start; }
.ei-banner-mbl-mockup .bubble.a { align-self: flex-end; }

/* VK */
.ei-banner-mbl-mockup .pair[data-net="vk"] .bubble.q { background: #ffffff; color: #000;    border-radius: 22px; }
.ei-banner-mbl-mockup .pair[data-net="vk"] .bubble.a { background: #d6e4ff; color: #0a0a0a; border-radius: 22px; }

/* Telegram */
.ei-banner-mbl-mockup .pair[data-net="tg"] .bubble.q { background: #ffffff; color: #000;    border-radius: 24px; }
.ei-banner-mbl-mockup .pair[data-net="tg"] .bubble.a { background: #effdde; color: #0a0a0a; border-radius: 24px; }
.ei-banner-mbl-mockup .pair[data-net="tg"] .bubble.a::after {
  content: "\f560";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #4fae4e;
  font-size: 18px;
  margin-left: 10px;
  opacity: 0.9;
}

/* WhatsApp */
.ei-banner-mbl-mockup .pair[data-net="wa"] .bubble.q { background: #ffffff; color: #0a0a0a; border-radius: 18px; }
.ei-banner-mbl-mockup .pair[data-net="wa"] .bubble.a { background: #dcf8c6; color: #0a0a0a; border-radius: 18px; }
.ei-banner-mbl-mockup .pair[data-net="wa"] .bubble.a::after {
  content: "\f560";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #4fc3f7;
  font-size: 18px;
  margin-left: 10px;
}

/* Instagram */
.ei-banner-mbl-mockup .pair[data-net="ig"] .bubble.q {
  background: #efefef;
  color: #0a0a0a;
  border-radius: 30px;
  padding: 20px 28px;
}
.ei-banner-mbl-mockup .pair[data-net="ig"] .bubble.a {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 50%, #fcb045);
  color: #fff;
  border-radius: 30px;
  padding: 20px 28px;
}

/* Network icon colors in chat-header */
.ei-banner-mbl-mockup .net-vk { background: #0077ff; }
.ei-banner-mbl-mockup .net-tg { background: #29b6f6; }
.ei-banner-mbl-mockup .net-wa { background: #25d366; }
.ei-banner-mbl-mockup .net-ig { background: linear-gradient(135deg, #833ab4, #fd1d1d 50%, #fcb045); }


/* =========================================================================
   POSTS MODE
   -------------------------------------------------------------------------
   Activated by adding data-mode="posts" on .ei-banner-mbl-mockup.
   Each .pair contains a stacked post + 2 comments instead of chat bubbles.
   Everything below is additive — chat-mode pages are not affected.
   ========================================================================= */

/* Bigger avatar font in posts mode so community emoji-avatars fill the circle */
.ei-banner-mbl-mockup[data-mode="posts"] .chat-header .avatar {
  font-size: 20px;
}

/* Wider container so the post overhangs the phone screen on the left,
   but sits inside the right edge */
.ei-banner-mbl-mockup[data-mode="posts"] .chat-body {
  left: -34px;
  right: 6px;
  top: 140px;
  bottom: 50px;
}

/* Stack items top-down; no gap because all items live inside ONE card */
.ei-banner-mbl-mockup[data-mode="posts"] .pair {
  justify-content: flex-start;
  gap: 0;
}

/* Shared reveal animation (matches .bubble.in behaviour) */
.ei-banner-mbl-mockup .reveal {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.2,.9,.3,1.2);
  will-change: opacity, transform;
}
.ei-banner-mbl-mockup .reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ----- Post card ----- */
.ei-banner-mbl-mockup .post-card {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 3px 6px rgba(0, 0, 0, 0.12);
  font-family: "Roboto", sans-serif;
  color: #0a0a0a;
}
.ei-banner-mbl-mockup .post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.ei-banner-mbl-mockup .post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFA300, #ff7a00);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.ei-banner-mbl-mockup .post-meta { line-height: 1.2; flex: 1; min-width: 0; }
.ei-banner-mbl-mockup .post-name { font-size: 16px; font-weight: 600; color: #0a0a0a; }
.ei-banner-mbl-mockup .post-sub { font-size: 13px; color: #6b7280; margin-top: 2px; }

.ei-banner-mbl-mockup .post-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
}
/* When a real image is supplied via <img>, fill the slot without distortion */
.ei-banner-mbl-mockup .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ei-banner-mbl-mockup .post-image:has(img) .ph-label { display: none; }

/* Per-network image themes (placeholders) */
.ei-banner-mbl-mockup .pair[data-net="vk"] .post-image {
  background: linear-gradient(135deg, #ffd6e0 0%, #ffeacc 50%, #d6ecff 100%);
}
.ei-banner-mbl-mockup .pair[data-net="tg"] .post-image {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #06b6d4 100%);
  color: #fff;
}
.ei-banner-mbl-mockup .pair[data-net="ig"] .post-image {
  background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 50%, #b2ebf2 100%);
}

.ei-banner-mbl-mockup .post-text {
  padding: 12px 16px 16px;
  font-size: 17px;
  line-height: 1.35;
  color: #0a0a0a;
}

/* ----- Comments (live INSIDE the post card, not separate bubbles) ----- */
.ei-banner-mbl-mockup .post-comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
}
.ei-banner-mbl-mockup .post-comment .post-avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
  background: linear-gradient(135deg, #6b7280, #4b5563);
  box-shadow: none;
}
.ei-banner-mbl-mockup .post-comment.reply .post-avatar {
  background: linear-gradient(135deg, #FFA300, #ff7a00);
}

.ei-banner-mbl-mockup .comment-bubble {
  background: transparent;
  border-radius: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  box-shadow: none;
  color: #0a0a0a;
}
.ei-banner-mbl-mockup .comment-name {
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 2px;
}
.ei-banner-mbl-mockup .comment-text {
  font-size: 16px;
  line-height: 1.3;
  color: #0a0a0a;
}

/* =========================================================================
   TELEGRAM STYLE — overrides for .pair[data-net="tg"]
   The post + 2 comments render as SEPARATE bubbles on a green wallpaper,
   matching how Telegram displays channel comments.
   ========================================================================= */

/* Pair becomes a wallpaper "card" that holds 3 separate bubbles */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] {
  background: linear-gradient(180deg, #c2e8b0 0%, #a9dba0 40%, #8fcf9a 100%);
  border-radius: 22px;
  padding: 18px 12px 14px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 3px 6px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  gap: 8px;
}

/* "Сегодня" date pill at the top of the chat area */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"]::before {
  content: "Сегодня";
  align-self: center;
  background: rgba(60, 110, 80, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 14px;
  margin-bottom: 4px;
}

/* The post itself becomes a white bubble — no longer a "card" wrapping comments */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-card {
  background: #ffffff;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  overflow: hidden;
  padding: 8px 12px 8px;
  align-self: flex-start;
  width: auto;
  max-width: 96%;
  position: relative;
}

/* Channel name as green title inside the post bubble */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-header {
  padding: 0;
  margin-bottom: 4px;
  gap: 0;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-header .post-avatar,
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-sub {
  display: none;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-name {
  font-size: 16px;
  font-weight: 700;
  color: #2ea44f;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-image {
  height: 160px;
  border-radius: 10px;
  margin: 4px 0 6px;
  width: 100%;
}

.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-text {
  padding: 0;
  font-size: 17px;
  line-height: 1.35;
  color: #0a0a0a;
  margin-bottom: 4px;
}

/* Views + time meta at bottom-right of the post bubble */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .tg-views {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  font-size: 12px;
  color: #7e9ca0;
  margin-top: 2px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .tg-views i {
  font-size: 13px;
}

/* Comments are SEPARATE bubbles, not inline rows inside the card */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-comment {
  background: transparent !important;
  padding: 0;
  border-top: none;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 92%;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-comment.reveal.in {
  padding: 0;
  border-top-width: 0;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-comment .post-avatar {
  width: 30px;
  height: 30px;
  font-size: 13px;
  box-shadow: none;
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* Incoming (question) bubble — white, left side, with rounded-tail bottom-left */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-comment .comment-bubble {
  background: #ffffff;
  border-radius: 14px 14px 14px 4px;
  padding: 6px 12px 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  min-width: 100px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .comment-name {
  font-size: 14px;
  font-weight: 700;
  color: #2ea44f;
  margin-bottom: 1px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .comment-text {
  font-size: 16px;
  color: #0a0a0a;
  line-height: 1.3;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .comment-meta {
  font-size: 11px;
  color: #7e9ca0;
  text-align: right;
  margin-top: 2px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
}

/* Outgoing (reply) — light-green bubble on the RIGHT, no avatar */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-comment.reply {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-comment.reply .post-avatar {
  display: none;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-comment.reply .comment-bubble {
  background: #e2f7c5;
  border-radius: 14px 14px 4px 14px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-comment.reply .comment-meta {
  color: #5aa86e;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="tg"] .post-comment.reply .comment-meta::after {
  content: "\f560"; /* fa-check-double */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #4fae4e;
  font-size: 11px;
  margin-left: 2px;
}

/* Per-network reply background tint (subtle highlight) — IG only now;
   TG handled above with its own dedicated bubble styling. */


/* =========================================================================
   INSTAGRAM STYLE — overrides for .pair[data-net="ig"]
   ========================================================================= */

.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-card {
  background: #ffffff;
}

/* Header: small round avatar + username + ⋯ menu */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-header {
  padding: 10px 14px;
  gap: 8px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-header .post-avatar {
  width: 30px;
  height: 30px;
  font-size: 16px;
  box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #c13584;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-name {
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-sub { display: none; }
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .ig-menu {
  color: #0a0a0a;
  font-size: 22px;
  line-height: 1;
  padding-left: 2px;
  flex-shrink: 0;
}

/* Square image, edge-to-edge */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-image {
  height: 280px;
  border-radius: 0;
}

/* "Статистика" + "Продвигать публикацию" row */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .ig-promote-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .ig-stats {
  font-size: 15px;
  font-weight: 600;
  color: #0d6efd;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .ig-promote {
  background: #dfe6ff;
  color: #6a82c8;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  cursor: default;
  font-family: inherit;
}

/* Action bar: ♡ count, 💬 count, ↻, ✈, ... bookmark on right */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .ig-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 14px 10px;
  color: #0a0a0a;
  font-size: 14px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .ig-actions i {
  font-size: 20px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .ig-actions .with-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .ig-actions .bookmark {
  margin-left: auto;
}

/* Comments — inline format: bold username + text + heart on right, date underneath */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-comment {
  padding: 8px 14px 4px;
  background: transparent !important;
  border-top: none;
  align-items: flex-start;
  gap: 0;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-comment.reveal.in {
  padding-top: 8px;
  padding-bottom: 4px;
  border-top-width: 0;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-comment .post-avatar {
  display: none;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .comment-bubble {
  background: transparent;
  padding: 0;
  box-shadow: none;
  position: relative;
  padding-right: 24px; /* room for heart icon */
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .comment-line {
  font-size: 15px;
  line-height: 1.35;
  color: #0a0a0a;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .comment-line .ig-username {
  font-weight: 700;
  color: #0a0a0a;
  margin-right: 4px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .comment-line .ig-mention {
  color: #1d75d6;
  margin-right: 4px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .comment-line .ig-heart {
  position: absolute;
  right: 0;
  top: 2px;
  color: #6b7280;
  font-size: 14px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .comment-date {
  font-size: 12px;
  color: #8e8e8e;
  margin-top: 4px;
}
/* IG post caption looks like an inline username + text, like a comment */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-text {
  padding: 4px 14px 8px;
  font-size: 15px;
  line-height: 1.35;
  color: #0a0a0a;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-text .ig-username {
  font-weight: 700;
  color: #0a0a0a;
  margin-right: 4px;
}

/* IG comments render via .comment-line, so hide the default .comment-name / .comment-text */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-comment .comment-name,
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="ig"] .post-comment .comment-text {
  display: none;
}

/* =========================================================================
   VK STYLE — overrides for .pair[data-net="vk"]
   ========================================================================= */

/* Header: dark-blue name, "Продвигать" pill, "⋯" menu */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-header {
  padding: 12px 14px 10px;
  align-items: center;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-name {
  font-size: 15px;
  font-weight: 600;
  color: #0c2960;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-sub { display: none; }

/* Emoji avatar (used for community in VK pair) — bump font-size so the emoji fills the circle */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-header .post-avatar {
  font-size: 22px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-comment.reply .post-avatar {
  font-size: 16px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .vk-promote {
  background: #ebedf0;
  color: #0c2960;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 10px;
  border: none;
  cursor: default;
  flex-shrink: 0;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .vk-menu {
  color: #99a2ad;
  font-size: 22px;
  line-height: 1;
  padding-left: 2px;
  flex-shrink: 0;
}

/* Post image: edge-to-edge, shorter for VK */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-image {
  height: 180px;
}

/* Post text: VK uses 15-16px body */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-text {
  font-size: 16px;
  padding: 12px 14px 6px;
}

/* Action bar (like / comment count / share / time-ago) */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .vk-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px 12px;
  color: #818c99;
  font-size: 14px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .vk-actions i {
  font-size: 17px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .vk-actions .with-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .vk-actions .time {
  margin-left: auto;
  font-size: 13px;
}

/* Comments: no bubble, no divider, no row background — pure text under the post */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-comment {
  padding: 8px 14px 10px;
  border-top: none;
  background: transparent !important;
  gap: 10px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-comment.reveal.in {
  padding-top: 8px;
  padding-bottom: 10px;
  border-top-width: 0;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .comment-bubble {
  background: transparent;
  padding: 0;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .comment-name {
  font-size: 14px;
  font-weight: 600;
  color: #0c2960;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .comment-text {
  font-size: 14px;
  color: #000;
  margin-top: 1px;
  line-height: 1.35;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .comment-meta {
  font-size: 12px;
  color: #818c99;
  margin-top: 5px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-comment .post-avatar {
  background: linear-gradient(135deg, #6b7c95, #44546e);
  box-shadow: none;
}

/* Reply: indented thread, smaller community avatar, blue link-style name + "· Автор" */
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-comment.reply {
  padding-left: 48px;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-comment.reply .post-avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
  background: linear-gradient(135deg, #FFA300, #ff7a00);
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .post-comment.reply .comment-name {
  color: #2a5885;
}
.ei-banner-mbl-mockup[data-mode="posts"] .pair[data-net="vk"] .author-badge {
  font-size: 13px;
  color: #818c99;
  margin-left: 4px;
  font-weight: 400;
}

/* Comments live inside the card and grow it downward when revealing.
   These rules override the generic .reveal animation (translateY+opacity)
   because comments need height to animate so the card visibly expands. */
.ei-banner-mbl-mockup[data-mode="posts"] .post-comment.reveal {
  opacity: 0;
  transform: none;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  overflow: hidden;
  transition:
    max-height 0.45s ease,
    padding 0.4s ease,
    opacity 0.4s ease 0.05s,
    border-top-width 0.4s ease;
}
.ei-banner-mbl-mockup[data-mode="posts"] .post-comment.reveal.in {
  opacity: 1;
  transform: none;
  max-height: 260px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top-width: 1px;
}
