.tb-portal-secured #portal-app {
  -webkit-user-select: none;
  user-select: none;
}

.tb-security-shield {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(6, 8, 13, 0.97);
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
}

.tb-security-shield.hidden {
  display: none !important;
}

.tb-security-shield-inner {
  text-align: center;
  color: #f4f2ec;
  padding: 2rem;
}

.tb-security-shield-inner strong {
  display: block;
  font-size: 1.35rem;
  color: #c9917c;
  margin-bottom: 0.5rem;
}

.tb-security-shield-inner p {
  font-size: 0.9rem;
  opacity: 0.75;
}

.tb-security-watermark {
  position: fixed;
  z-index: 99990;
  pointer-events: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(201, 145, 124, 0.22);
  transform: rotate(-18deg);
  white-space: nowrap;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .tb-security-watermark {
  color: rgba(139, 90, 74, 0.28);
}

.tb-session-lost {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(6, 8, 13, 0.88);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.tb-session-lost.hidden {
  display: none !important;
}

.tb-session-lost-card {
  width: min(100%, 400px);
  padding: 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 145, 124, 0.35);
  background: rgba(12, 18, 28, 0.96);
  text-align: center;
}

.tb-session-lost-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #c9917c;
}

.tb-session-lost-card p {
  font-size: 0.9rem;
  color: rgba(244, 242, 236, 0.75);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

[data-theme="light"] .tb-session-lost-card {
  background: #fff;
  border-color: rgba(10, 14, 22, 0.12);
}

[data-theme="light"] .tb-session-lost-card p {
  color: rgba(10, 14, 22, 0.72);
}

.portal-player-wrap .tb-video-watermark {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.portal-player-wrap {
  position: relative;
}

@media print {
  body.tb-portal-secured * {
    visibility: hidden !important;
  }
}
