body.is-demo-locked {
  overflow: hidden;
}

.hero-demo-teaser {
  width: min(430px, 100%);
  margin-top: 16px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: var(--radius);
  background: rgba(52, 134, 185, 0.42);
  padding: 13px;
  box-shadow: 0 18px 44px rgba(34, 211, 238, 0.1);
}

.hero-demo-teaser span,
.demo-side__tag,
.demo-kicker {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-demo-teaser strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.22;
}

.hero-demo-teaser a {
  width: max-content;
  color: var(--gold);
  font-weight: 900;
}

.section-demo {
  background:
    linear-gradient(180deg, rgba(34, 106, 153, 0.18), rgba(42, 125, 176, 0.26)),
    linear-gradient(90deg, rgba(125, 225, 255, 0.1), transparent 44%, rgba(251, 214, 93, 0.06));
}

.demo-safety-note {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.demo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.demo-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.demo-phone {
  width: min(414px, 100%);
  min-width: 0;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(20, 66, 105, 0.95), rgba(9, 31, 54, 0.98)),
    url("../images/prague-digital-bg.jpg") center / cover no-repeat,
    #0a2038;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38), 0 0 46px rgba(34, 211, 238, 0.12);
}

.demo-phone__top {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--brand-line);
  background: rgba(28, 87, 130, 0.68);
}

.demo-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.demo-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #021124;
  font-weight: 950;
}

.demo-brand strong {
  overflow: hidden;
  font-size: 1.05rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo-menu-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 5px;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(38, 111, 158, 0.7);
  cursor: pointer;
}

.demo-menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.demo-status-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 12px 0;
  scrollbar-width: none;
}

.demo-status-bar::-webkit-scrollbar,
.demo-tabs::-webkit-scrollbar {
  display: none;
}

.demo-status-bar span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0 10px;
}

.demo-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px;
  scrollbar-width: none;
}

.demo-tabs button {
  min-height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: rgba(53, 132, 181, 0.46);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0 12px;
}

.demo-tabs button.is-active {
  border-color: rgba(251, 191, 36, 0.58);
  background: rgba(251, 191, 36, 0.12);
  color: var(--gold);
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.14);
}

.demo-screen {
  min-height: 520px;
  padding: 0 12px 12px;
}

.demo-feed-list {
  display: grid;
  gap: 12px;
}

.demo-app-head,
.demo-chat-head,
.demo-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.demo-app-head strong,
.demo-chat-head strong,
.demo-admin-head strong {
  display: block;
  color: var(--text);
  line-height: 1.15;
}

.demo-city-pill,
.demo-badge,
.demo-vip-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 0 10px;
}

.demo-badge,
.demo-vip-label {
  border-color: rgba(251, 191, 36, 0.42);
  color: var(--gold);
}

.demo-post,
.demo-profile-card,
.demo-vip-card,
.demo-report-card {
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(42, 115, 164, 0.74), rgba(22, 74, 118, 0.82)),
    rgba(60, 145, 194, 0.52);
  padding: 13px;
  box-shadow: 0 14px 36px rgba(2, 15, 30, 0.18), inset 0 1px 0 rgba(222, 247, 255, 0.16);
}

.demo-post__author,
.demo-profile-card__top,
.demo-friend {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-post__author {
  align-items: flex-start;
}

.demo-post__thumb {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 14px;
  object-fit: cover;
  background: #123451;
}

.demo-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-weight: 950;
}

.demo-avatar--large {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 1.1rem;
}

.demo-post__author > div,
.demo-friend > div:not(.demo-friend__actions) {
  min-width: 0;
  flex: 1;
}

.demo-post__author small,
.demo-chat-head span,
.demo-friend small {
  display: block;
  color: var(--muted-2);
  font-size: 0.76rem;
}

.demo-post h3,
.demo-profile-card h3,
.demo-vip-card h3,
.demo-report-card h3 {
  margin: 13px 0 8px;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.15;
}

.demo-post p,
.demo-profile-card p,
.demo-vip-card p,
.demo-report-card p,
.demo-side p,
.demo-side li {
  color: var(--muted);
}

.demo-post__author strong {
  color: #fde68a;
  font-size: 1.04rem;
  line-height: 1.16;
}

.demo-image-card {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 4px;
  margin: 12px 0;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(25deg, rgba(251, 191, 36, 0.12), transparent 42%),
    #123451;
  padding: 14px;
}

.demo-image-card span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
}

.demo-image-card strong {
  color: var(--text);
  font-size: 1.15rem;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-actions--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-action {
  min-height: 36px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: rgba(53, 132, 181, 0.52);
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0 11px;
}

.demo-action--gold {
  border-color: rgba(251, 191, 36, 0.46);
  background: rgba(251, 191, 36, 0.14);
  color: var(--gold);
}

.demo-action--glow {
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.16);
}

.demo-action--danger {
  border-color: rgba(251, 113, 133, 0.44);
  color: #fecdd3;
}

.demo-action--wide {
  width: 100%;
}

.demo-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--brand-line);
  padding-top: 12px;
}

.demo-composer input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: rgba(11, 47, 79, 0.72);
  color: var(--muted);
  padding: 0 12px;
}

.demo-composer button {
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  cursor: pointer;
  font-weight: 900;
}

.demo-composer--chat {
  grid-template-columns: 42px minmax(0, 1fr) 48px;
}

.demo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.demo-badges span,
.demo-vip-stats span,
.demo-report-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 850;
  padding: 0 9px;
}

.demo-progress {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.demo-progress div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.demo-progress strong {
  color: var(--gold);
}

.demo-progress i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.demo-progress i::before {
  content: "";
  display: block;
  width: var(--demo-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.demo-rating {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0;
}

.demo-rating strong {
  color: var(--gold);
  font-size: 1.8rem;
}

.demo-rating span {
  color: var(--muted);
}

.demo-messages {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.demo-message {
  max-width: 88%;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  background: rgba(35, 104, 153, 0.68);
  padding: 10px;
}

.demo-message--user {
  justify-self: end;
  border-color: rgba(251, 191, 36, 0.26);
  background: rgba(251, 191, 36, 0.1);
}

.demo-message small {
  color: var(--muted-2);
  font-size: 0.72rem;
}

.demo-message small span {
  float: right;
  margin-left: 10px;
  color: #94a3b8;
}

.demo-message p {
  margin: 4px 0 0;
  color: var(--text);
}

.demo-install-banner {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 18px;
  background: rgba(40, 116, 165, 0.78);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.14);
  padding: 11px;
}

.demo-install-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #7c3aed);
  color: #020617;
  font-weight: 950;
}

.demo-install-banner strong {
  display: block;
  color: #fde68a;
  line-height: 1.16;
}

.demo-install-banner small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.demo-install-banner .demo-action {
  grid-column: 1 / -1;
  min-height: 40px;
}

.demo-vip-stats,
.demo-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.demo-friends {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-friend {
  align-items: flex-start;
  flex-wrap: wrap;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: rgba(43, 120, 169, 0.62);
  padding: 10px;
}

.demo-friend__actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.demo-confirmed {
  flex: 0 0 auto;
  border: 1px solid rgba(125, 223, 100, 0.28);
  border-radius: 999px;
  background: rgba(125, 223, 100, 0.13);
  color: #bbf7d0;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
}

.demo-admin-head {
  align-items: flex-start;
  flex-direction: column;
}

.demo-admin-head span {
  color: var(--gold);
  font-weight: 900;
}

.demo-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.demo-admin-tile {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: rgba(45, 124, 174, 0.64);
  padding: 12px;
}

.demo-admin-tile span {
  color: var(--muted);
  font-size: 0.82rem;
}

.demo-admin-tile strong {
  color: var(--text);
  font-size: 1.25rem;
}

.demo-admin-tile--cyan {
  border-color: rgba(34, 211, 238, 0.22);
}

.demo-admin-tile--gold {
  border-color: rgba(251, 191, 36, 0.28);
}

.demo-admin-tile--green {
  border-color: rgba(125, 223, 100, 0.28);
}

.demo-bottom-note {
  border-top: 1px solid var(--brand-line);
  color: var(--muted-2);
  font-size: 0.76rem;
  padding: 11px 14px 13px;
}

.demo-quickbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px;
  border-top: 1px solid var(--brand-line);
  padding: 10px 12px;
}

.demo-quickbar button {
  min-height: 44px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 14px;
  background: rgba(43, 120, 169, 0.68);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.demo-quickbar button:last-child {
  background: rgba(34, 211, 238, 0.13);
  color: var(--cyan);
  font-size: 1.3rem;
}

.demo-side {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--brand-panel);
  padding: 18px;
  box-shadow: 0 18px 58px rgba(2, 15, 30, 0.18), inset 0 1px 0 rgba(222, 247, 255, 0.16);
}

.demo-side h3 {
  margin: 8px 0 10px;
  color: var(--text);
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  line-height: 1.08;
}

.demo-side ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  padding-left: 18px;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.demo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 5, 15, 0.88);
  backdrop-filter: blur(10px);
}

.demo-modal__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100svh - 24px);
  overflow: auto;
}

.demo-phone--modal {
  width: 100%;
}

.demo-phone--modal .demo-menu-button {
  opacity: 0;
  pointer-events: none;
}

.demo-phone--modal .demo-screen {
  min-height: 560px;
}

.demo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(18, 62, 99, 0.9);
  color: var(--text);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 340;
  width: min(360px, calc(100vw - 28px));
  transform: translate(-50%, 18px);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(25, 83, 128, 0.96);
  color: var(--text);
  font-weight: 850;
  padding: 12px 16px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.demo-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (min-width: 820px) {
  .demo-layout {
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
    align-items: center;
  }

  .demo-phone {
    justify-self: start;
  }

  .demo-side {
    padding: 24px;
  }
}

@media (max-width: 430px) {
  .demo-cta-row .btn,
  .demo-side .btn {
    width: 100%;
  }

  .demo-phone {
    border-radius: 18px;
  }

  .demo-screen {
    min-height: 500px;
  }

  .demo-actions--grid,
  .demo-admin-grid {
    grid-template-columns: 1fr;
  }

  .demo-post__author {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .demo-badge {
    margin-left: 48px;
  }

  .demo-modal {
    padding: 8px;
  }

  .demo-modal__panel {
    max-height: calc(100svh - 16px);
  }
}
