/* ============================================================
   GATE-INLINE.CSS — UNIFIED DESIGN SYSTEM
   Chuẩn hóa: sticky header, note modal, gold assist, toast, lightbox
   ============================================================ */

#status {
  margin-top: var(--sp-2);
  min-height: 22px
}

#status .bad {
  color: var(--danger);
  font-weight: 600
}

#status .ok {
  color: var(--success)
}

#status .muted {
  color: var(--text-muted)
}

.iframeWrap {
  margin-top: var(--sp-4)
}

.iframeWrap iframe {
  width: 100%;
  height: 70vh;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-primary)
}

.countRow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4)
}

.countRow .right {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f8fafc;
  text-shadow: 0 0 20px rgba(248, 250, 252, .6), 0 0 40px rgba(59, 130, 246, .4), 0 0 60px rgba(147, 51, 234, .3);
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countdownPulse 2s ease-in-out infinite alternate
}

body.modal-open {
  overflow: hidden
}

/* ============================================================
   STICKY HEADER — Glassmorphism
   ============================================================ */
.sticky-header {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--sp-2));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 20px), 932px);
  box-sizing: border-box;
  z-index: 2147483000;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3) var(--sp-4);
  margin: 0;
  display: none;
  border-radius: var(--radius-xl);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none
}

.sticky-header.show {
  display: block
}

.sticky-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 16px);
  max-width: 100%;
  padding: var(--sp-1) var(--sp-2)
}

/* Badge không co — tránh ép countdown vào cột hẹp */
.sticky-badge {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--success), var(--success-dark));
  color: #fff;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--radius-pill);
  font-size: max(9.9pt, min(1.042vw, 14px));
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(34, 197, 94, .35);
  border: 1px solid rgba(34, 197, 94, 0.3);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1)
}

.sticky-countdown {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 12px);
  flex: 1;
  min-width: 0;
  justify-content: flex-end
}

/* Một dòng — tránh "Thời gian còn lại" bị xuống dòng lỗi trong flex */
.sticky-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: max(9.9pt, min(1.042vw, 15px));
  font-weight: 600;
  letter-spacing: .01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right
}

.sticky-timer {
  flex-shrink: 0;
  color: #fff;
  font-size: clamp(1.8rem, 2.2rem, 2.5rem);
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(248, 250, 252, .6), 0 0 40px rgba(59, 130, 246, .4), 0 0 60px rgba(147, 51, 234, .3);
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countdownPulse 2s ease-in-out infinite alternate
}

@keyframes countdownPulse {
  0% {
    text-shadow: 0 0 20px rgba(248, 250, 252, .6), 0 0 40px rgba(59, 130, 246, .4), 0 0 60px rgba(147, 51, 234, .3)
  }
  100% {
    text-shadow: 0 0 30px rgba(248, 250, 252, .8), 0 0 50px rgba(59, 130, 246, .6), 0 0 80px rgba(147, 51, 234, .5)
  }
}

/* Dùng px thuần: nhiều trình duyệt không áp dụng var() trong @media */
@media (max-width: 768px) {
  .sticky-header {
    top: calc(env(safe-area-inset-top, 0px) + 6px);
    width: calc(100vw - 16px);
    padding: 10px var(--sp-3)
  }

  .sticky-content {
    gap: 12px
  }

  .sticky-badge {
    padding: 5px 10px;
    font-size: .7rem
  }

  .sticky-label {
    font-size: .85rem
  }

  .sticky-timer {
    font-size: 1.8rem
  }

  .countRow .right {
    font-size: 2.8rem
  }
}

@media (max-width: 480px) {
  .sticky-header {
    top: calc(env(safe-area-inset-top, 0px) + 4px);
    width: calc(100vw - 12px);
    padding: var(--sp-2) 10px
  }

  .sticky-content {
    gap: 8px
  }

  .sticky-badge {
    padding: 4px 8px;
    font-size: .65rem
  }

  .sticky-label {
    font-size: .78rem
  }

  .sticky-timer {
    font-size: 1.45rem
  }

  .countRow .right {
    font-size: 2.4rem
  }
}

/* ============================================================
   GATE BODY STATES
   ============================================================ */
#okBox {
  display: none !important
}

#stickyHeader:not(.hidden) {
  display: block !important
}

body.authed .container {
  padding-top: calc(env(safe-area-inset-top, 0px) + 94px);
}

body.host-lb-open #stickyHeader {
  display: none !important;
}

body.modal-open #stickyHeader {
  display: none !important;
}

/* ============================================================
   NOTE MODAL — Shared base
   ============================================================ */
.note-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120500;
  padding: var(--sp-4)
}

.note-modal.show {
  display: flex
}

.note-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 26, .78);
  backdrop-filter: blur(6px)
}

.note-modal-panel {
  position: relative;
  max-width: 480px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--bg-modal);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  padding: 28px 26px 24px;
  color: var(--text);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  font-family: var(--font-body)
}

.note-modal-panel::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(96, 165, 250, .18), transparent 65%);
  opacity: .85;
  pointer-events: none
}

.note-modal-title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin: 0 0 var(--sp-3);
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px
}

.note-modal-title span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(59, 130, 246, .28)
}

.note-modal-body {
  position: relative;
  z-index: 2;
  margin-bottom: var(--sp-5);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1
}

.note-modal-body ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3)
}

.note-modal-body li {
  color: #fca5a5;
  font-weight: 700
}

.note-modal-body strong {
  color: #f1f5f9
}

/* Last-minute variant: cùng nền slate, nhấn nhẹ viền ấm */
.note-modal-panel.last-minute {
  background: var(--bg-modal);
  border: 1px solid rgba(251, 113, 133, .32)
}

.note-modal-panel.last-minute::before {
  background: radial-gradient(circle at 75% 0%, rgba(251, 113, 133, .14), transparent 62%)
}

.note-modal-body p {
  margin: 0 0 var(--sp-4);
  color: var(--text)
}

/* Copy card */
.note-modal-copy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  padding: 18px 18px 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden
}

.note-modal-copy-card::before {
  content: "";
  position: absolute;
  top: -64px;
  right: -48px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, .12), transparent 70%);
  pointer-events: none
}

.note-modal-copy-card::after {
  display: none
}

.note-modal-copy-bubble {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4) 20px var(--sp-4);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(30, 58, 138, .55);
  border: 1px solid rgba(147, 197, 253, .35);
  border-radius: var(--radius-lg);
  color: #f8fafc;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .01em;
  text-align: left;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2)
}

.note-modal-copy-bubble::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 24px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc, #93c5fd);
  opacity: .92
}

.note-modal-copy-bubble::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 28px;
  width: 26px;
  height: 16px;
  border-radius: 12px 12px 4px 12px;
  background: linear-gradient(140deg, rgba(37, 99, 235, .95), rgba(29, 78, 216, .9));
  transform: skewX(-26deg);
  box-shadow: -3px 3px 0 rgba(15, 23, 42, .45);
  opacity: .9
}

.note-modal-copy-bubble .note-modal-copy-text {
  display: block;
  padding-left: 18px;
  padding-right: var(--sp-2);
  color: #f8fafc
}

.note-modal-copy-bubble .note-modal-copy-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding-left: 18px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(226, 232, 240, .8)
}

.note-modal-copy-bubble .note-modal-copy-meta svg {
  width: 20px;
  height: 14px;
  display: inline-block
}

@media (max-width: var(--bp-md)) {
  .note-modal-copy-card {
    padding: var(--sp-5) 18px;
    border-radius: 20px
  }

  .note-modal-copy-bubble {
    padding: var(--sp-4) 22px var(--sp-4);
    min-width: 0;
    border-radius: 16px
  }

  .note-modal-copy-bubble::before {
    left: 14px;
    top: 14px;
    bottom: 22px
  }

  .note-modal-copy-bubble::after {
    left: 24px;
    width: 22px;
    height: 14px
  }

  .note-modal-copy-bubble .note-modal-copy-text {
    padding-left: 16px
  }

  .note-modal-copy-bubble .note-modal-copy-meta {
    padding-left: 16px;
    font-size: .75rem
  }
}

/* Copy button */
.note-modal-copy-btn {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: var(--sp-2) 20px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease, filter var(--dur-fast) ease;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .3)
}

.note-modal-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .38);
  filter: brightness(1.04)
}

.note-modal-copy-btn.is-busy {
  opacity: .75;
  cursor: wait;
  transform: none;
  box-shadow: none;
  filter: none
}

/* ============================================================
   NOTE MODAL — Action Button (Shared)
   ============================================================ */
.note-modal-action {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end
}

/* Primary action: green gradient — Đã hiểu, Đã hiểu */
.note-modal-action button {
  background: linear-gradient(135deg, var(--success), var(--success-dark));
  color: #fff;
  font-weight: 800;
  padding: var(--sp-2) 20px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(34, 197, 94, .45);
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease
}

.note-modal-action button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(34, 197, 94, .55)
}

/* Gold assist host action: teal gradient — sửa contrast */
#goldAssistHostModal .note-modal-action button {
  background: linear-gradient(135deg, #2dd4bf, #0ea5e9);
  color: #fff;
  font-weight: 820;
  box-shadow: 0 18px 36px rgba(13, 148, 136, .42)
}

@media (max-width: var(--bp-md)) {
  #lastMinutesModal .note-modal-action {
    justify-content: center
  }

  #lastMinutesModal .note-modal-action button {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box
  }
}

/* ============================================================
   LAST MINUTES MODAL
   ============================================================ */
#lastMinutesModal .note-modal-title span {
  font-size: 1.3rem
}

/* ============================================================
   GOLD ASSIST HOST PANEL
   ============================================================ */
.note-modal-panel.gold-assist-host-panel {
  background: var(--bg-modal);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2xl);
  padding: 34px 32px 26px;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch
}

.note-modal-panel.gold-assist-host-panel::before {
  background: radial-gradient(circle at 68% -10%, rgba(96, 165, 250, .22), transparent 70%)
}

.note-modal-panel.gold-assist-host-panel .note-modal-title {
  color: var(--text);
  letter-spacing: .06em;
  text-transform: none;
  font-size: var(--text-lg);
  line-height: 1.3
}

.note-modal-panel.gold-assist-host-panel .note-modal-title span {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  box-shadow: 0 10px 22px rgba(59, 130, 246, .28)
}

.gold-assist-host-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  color: #cbd5e1;
  font-size: .98rem;
  line-height: 1.65
}

.gold-assist-host-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch
}

.gold-assist-host-intro {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3)
}

.gold-assist-host-lead {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.55
}

.gold-assist-host-lead a {
  color: #93c5fd;
  font-weight: 700;
  text-decoration: underline
}

.gold-assist-host-steps {
  margin: 0;
  padding: 14px 16px 14px 2rem;
  list-style: decimal;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.55
}

.gold-assist-host-steps li {
  padding-left: .35rem
}

.gold-assist-host-steps a {
  color: #93c5fd;
  font-weight: 700;
  text-decoration: underline
}

.gold-assist-host-steps em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 600
}

.gold-assist-host-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4)
}

.gold-assist-host-list li {
  position: relative;
  padding-left: 30px;
  color: #e0e7ff;
  font-weight: 650
}

.gold-assist-host-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle, #38bdf8 0%, #7c3aed 68%);
  box-shadow: 0 0 12px rgba(129, 140, 248, .5)
}

.gold-assist-host-list li strong {
  color: #fef3c7;
  font-weight: 820
}

.gold-assist-host-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  width: 100%
}

.gold-assist-host-gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  max-width: min(280px, 100%)
}

.gold-assist-host-gallery figcaption {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
  line-height: 1.3
}

.gold-assist-phone {
  position: relative;
  width: 100%;
  max-width: 260px;
  padding: 14px 12px 18px;
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(8, 16, 34, .95), rgba(30, 41, 59, .88));
  border: 1px solid rgba(148, 163, 184, .28);
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: center;
  cursor: pointer;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  text-align: inherit
}

.gold-assist-phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .65)
}

.gold-assist-phone::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .35)
}

.gold-assist-phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, .35), var(--shadow-md);
  transition: transform .22s ease, box-shadow .22s ease
}

.gold-assist-phone:hover img {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, .75), 0 20px 38px rgba(14, 116, 144, .45)
}

.gold-assist-phone:focus-visible {
  outline: 2px solid rgba(125, 211, 252, .7);
  outline-offset: 4px
}

.gold-assist-video-details {
  margin-top: 4px;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, .2);
  overflow: hidden
}

.gold-assist-video-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 650;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.45;
  user-select: none;
  -webkit-tap-highlight-color: transparent
}

.gold-assist-video-summary::-webkit-details-marker {
  display: none
}

.gold-assist-video-summary:focus {
  outline: none
}

.gold-assist-video-summary:focus-visible {
  outline: 2px solid rgba(147, 197, 253, .65);
  outline-offset: 2px;
  border-radius: var(--radius-sm)
}

.gold-assist-video-summary-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  margin-top: .1rem;
  color: #93c5fd;
  transition: transform .2s ease
}

.gold-assist-video-details[open] .gold-assist-video-summary-icon {
  transform: rotate(90deg)
}

.gold-assist-video-summary-text em {
  display: block;
  margin-top: 4px;
  font-size: .82rem;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 600
}

.gold-assist-video-hint {
  margin: 0;
  padding: 0 16px 10px;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.45
}

.gold-assist-host-video {
  margin: 0;
  padding: 0 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.gold-assist-video {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid rgba(148, 163, 184, .28);
  box-shadow: var(--shadow-md);
  overflow: hidden
}

.gold-assist-video::-webkit-media-controls {
  background: transparent;
}

@media (min-width: var(--bp-tab)) {
  .gold-assist-host-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: var(--sp-6) 28px;
    align-items: start
  }

  .gold-assist-host-intro {
    grid-column: 1;
    grid-row: 1
  }

  .gold-assist-host-gallery {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    gap: var(--sp-4);
    max-height: min(68vh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px
  }

  .gold-assist-host-gallery figure {
    max-width: 100%
  }

  .gold-assist-video-details {
    grid-column: 1 / -1;
    grid-row: 2
  }

  .gold-assist-video {
    max-width: 520px;
    margin: 0 auto
  }
}

@media (max-width: var(--bp-tab)) {
  .gold-assist-host-gallery figure {
    max-width: min(300px, 100%)
  }

  .gold-assist-phone {
    max-width: min(280px, 88vw)
  }
}

@media (max-width: var(--bp-sm)) {
  .note-modal-panel.gold-assist-host-panel {
    padding: var(--sp-6) var(--sp-4) var(--sp-5);
    max-height: 88vh
  }

  .gold-assist-host-layout {
    gap: var(--sp-5)
  }

  .gold-assist-host-gallery {
    gap: var(--sp-3)
  }

  .gold-assist-host-list li {
    padding-left: 26px
  }

  .gold-assist-phone {
    max-width: none;
    padding: 10px 8px 14px
  }
}

/* ============================================================
   TOAST
   ============================================================ */
#hostCopyToast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
  z-index: 121000;
  max-width: calc(100% - 40px);
  text-align: center;
  line-height: 1.25
}

#hostCopyToast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02)
}

/* ============================================================
   ANTI-SELECT / ANTI-COPY
   ============================================================ */
html,
body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none
}

input,
textarea,
[contenteditable] {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: auto !important
}

/* ============================================================
   HOST LIGHTBOX
   ============================================================ */
.host-lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2147483642
}

.host-lb.show {
  display: flex
}

.host-lb img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain
}

/* Blur-up for host lightbox image */
.host-lb img.blur-up {
  filter: blur(6px);
  transform: scale(1.01);
  transition: filter .3s ease, transform .3s ease;
  background: #0c142a
}

.host-lb img.blur-up.is-loaded {
  filter: blur(0);
  transform: none
}

.host-lb .bar {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0));
  right: calc(12px + env(safe-area-inset-right, 0));
  display: flex;
  gap: 10px;
  z-index: 2147483643;
  align-items: center
}

.host-lb .btn {
  font-size: 15px;
  line-height: 1;
  color: #e5e7eb;
  background: rgba(17, 24, 39, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: background var(--dur-fast) ease, transform .12s ease, border-color var(--dur-fast) ease
}

.host-lb .btn:hover {
  background: rgba(31, 41, 55, .7)
}

.host-lb .btn:active {
  transform: translateY(1px)
}

.host-lb .btn.close {
  font-size: 22px;
  font-weight: 700;
  width: 46px;
  height: 46px;
  padding: 0
}

@media (max-width: var(--bp-md)) {
  .host-lb .btn.close {
    width: 50px;
    height: 50px;
    font-size: 24px
  }

  .host-lb .btn {
    padding: 10px 16px
  }
}

/* Next button at top-center */
.host-lb .btn.next.center {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483643
}

/* ============================================================
   ANTI-CAPTURE OVERLAY
   ============================================================ */
.anti-cap {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s linear;
  z-index: 100000
}

.anti-cap.show {
  opacity: 1
}
