*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #e63946;
  --red-dark: #c1121f;
  --red-glow: rgba(230, 57, 70, 0.25);
  --bg: #0d0d0f;
  --bg-card: #141418;
  --bg-card2: #1a1a1f;
  --border: #2a2a30;
  --text: #f0f0f2;
  --text-muted: #888;
  --text-sub: #aaa;
  --green: #4ade80;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── FUNDO COM IMAGEM ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('bg.png.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

/* Garante que todo conteúdo fica acima do fundo */
.navbar,
.hero,
.features,
.steps-section,
.tip-banner,
.footer {
  position: relative;
  z-index: 1;
}

/* ── NAVBAR ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(13, 13, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 10px;
  padding: 6px;
  display: flex;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

.btn-nav {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-nav:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 80px 48px 60px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg-text {
  position: absolute;
  font-size: 420px;
  font-weight: 900;
  color: rgba(230, 57, 70, 0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  letter-spacing: -20px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-left {
  flex: 1;
  max-width: 580px;
}

.hero-left h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.highlight { color: var(--red); }

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-sub);
  margin-bottom: 28px;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-green 1.5s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

/* ── CREATE CARD ── */
.create-card {
  width: 380px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.card-header {
  padding: 24px 24px 0;
}

.card-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lock-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.lock-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lock-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.lock-sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0;
  background: #333;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: transform 0.2s;
}
.toggle input:checked + .slider { background: var(--red); }
.toggle input:checked + .slider::before { transform: translateX(20px); }

.input-field {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.input-field:focus { border-color: var(--red); }
.input-field::placeholder { color: var(--text-muted); }

.btn-create {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-create:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(230, 57, 70, 0.4);
}
.btn-create:active { transform: translateY(0); }

.e2e-info {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.e2e-info strong { color: var(--green); }

.join-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.join-link a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.join-link a:hover { text-decoration: underline; }

/* ── SECTION HEADERS ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-muted);
}

/* ── FEATURES ── */
.features {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(230, 57, 70, 0.4);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.badge-new {
  background: rgba(230, 57, 70, 0.15);
  color: var(--red);
  border: 1px solid rgba(230, 57, 70, 0.3);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

/* ── STEPS ── */
.steps-section {
  padding: 80px 48px;
  background: rgba(230, 57, 70, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px var(--red-glow);
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── TIP BANNER ── */
.tip-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0;
  padding: 20px 48px;
  font-size: 14px;
  color: #c9a227;
  line-height: 1.6;
}
.tip-banner strong { color: #f59e0b; }
.tip-banner p { color: #c9a227; }

/* ── FOOTER ── */
.footer {
  padding: 40px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-link {
  color: var(--red);
  text-decoration: none;
  font-size: 13px;
}
.footer-link:hover { text-decoration: underline; }
.footer-heart { font-size: 13px; }

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.modal h2 { font-size: 22px; font-weight: 800; }
.modal p { font-size: 14px; color: var(--text-muted); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 30px; height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--text); background: #222; }

.modal-success-icon {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.room-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-sub);
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.copy-btn:hover { background: var(--red-dark); }

.copy-feedback {
  color: var(--green);
  font-size: 13px;
  text-align: center;
  display: none;
}

/* ── ROOM OVERLAY ── */
.room-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: none;
  flex-direction: column;
  z-index: 300;
}
.room-overlay.open { display: flex; }

.room-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.room-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.room-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-code-display {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 7px;
  font-family: monospace;
}

.btn-copy-invite {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--red);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-copy-invite:hover { background: rgba(230, 57, 70, 0.2); }

.btn-leave {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--red);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-leave:hover { background: rgba(230, 57, 70, 0.25); }

.room-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.video-area {
  flex: 1;
  background: #080809;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: auto;
}

.video-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}
.video-el.active { display: block; }

.video-grid {
  display: grid;
  gap: 8px;
  width: 100%;
  height: 100%;
}
/* 1 stream = ocupa tudo; 2 = lado a lado; 3-4 = 2x2; 5+ = 3 colunas */
.video-grid.count-1 { grid-template-columns: 1fr; }
.video-grid.count-2 { grid-template-columns: 1fr 1fr; }
.video-grid.count-3, .video-grid.count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.video-grid.count-5, .video-grid.count-6, .video-grid.count-more { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }

.video-tile {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border, #2a2a2a);
  cursor: pointer;
  min-height: 0;
}
.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.video-tile .tile-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.video-tile .tile-label .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red, #e63946);
  box-shadow: 0 0 6px rgba(230,57,70,.9);
  animation: nx-pulse 1.4s infinite;
}
.video-tile .tile-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #666; font-size: 13px;
}

.no-stream {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  text-align: center;
}
.no-stream p { font-size: 16px; font-weight: 600; }
.no-stream small { font-size: 13px; color: #555; }

.room-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--bg-card);
}

.participants-panel {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.participants-panel h4,
.chat-panel h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.participant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-card2);
  position: relative;
}

.participant-avatar {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sharing-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red, #e63946);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 0 0 2px var(--bg-card2, #1a1a1a), 0 0 8px rgba(230,57,70,.8);
  animation: nx-pulse 1.4s infinite;
}

@keyframes nx-pulse {
  0%   { box-shadow: 0 0 0 2px var(--bg-card2, #1a1a1a), 0 0 0 0 rgba(230,57,70,.6); }
  70%  { box-shadow: 0 0 0 2px var(--bg-card2, #1a1a1a), 0 0 0 6px rgba(230,57,70,0); }
  100% { box-shadow: 0 0 0 2px var(--bg-card2, #1a1a1a), 0 0 0 0 rgba(230,57,70,0); }
}

.participant-item span:nth-child(2) {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}

.p-status.online { color: var(--green); font-size: 10px; }

.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding-right: 4px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-card2);
  border-radius: 8px;
  padding: 8px 10px;
}
.chat-msg.system { color: var(--text-muted); font-style: italic; text-align: center; background: transparent; }
.chat-msg .msg-name { color: var(--red); font-weight: 700; font-size: 11px; margin-bottom: 2px; display: block; }

.chat-input-area {
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
}
.chat-input:focus { border-color: var(--red); }
.chat-input::placeholder { color: #555; }

.btn-send {
  background: var(--red);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-send:hover { background: var(--red-dark); }

/* ── ROOM CONTROLS ── */
.room-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.ctrl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ctrl-btn:hover { background: #222; border-color: #444; }
.ctrl-btn.active {
  background: rgba(230, 57, 70, 0.15);
  border-color: rgba(230, 57, 70, 0.5);
  color: var(--red);
}
.ctrl-btn.btn-danger {
  background: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.3);
  color: var(--red);
}
.ctrl-btn.btn-danger:hover {
  background: rgba(230, 57, 70, 0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { flex-direction: column; align-items: center; }
  .hero-left { max-width: 100%; text-align: center; }
  .feature-tags { justify-content: center; }
  .online-badge { display: inline-flex; }
  .create-card { width: 100%; max-width: 480px; }
}

@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .nav-link { display: none; }
  .hero { padding: 50px 20px 40px; min-height: auto; }
  .hero-left h1 { font-size: 32px; }
  .features { padding: 50px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-section { padding: 50px 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .tip-banner { padding: 18px 20px; }
  .footer { padding: 30px 20px; }
  .room-sidebar { display: none; }
  .room-controls { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .ctrl-btn { font-size: 12px; padding: 8px 12px; }
  .hero-bg-text { font-size: 200px; }
}

/* ══════════════════════════════════════
   NX SCREENSHARE — MODAL DE APELIDO
══════════════════════════════════════ */

/* Overlay com blur e vinheta vermelha */
#nicknameModal.open {
  display: flex;
  background: radial-gradient(ellipse at center, rgba(230,57,70,0.08) 0%, rgba(0,0,0,0.88) 70%);
  backdrop-filter: blur(10px);
  animation: nxFadeIn 0.3s ease;
}

@keyframes nxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Card principal */
.nx-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #111114;
  border: 1px solid #2a2a30;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(230,57,70,0.12),
    0 40px 100px rgba(0,0,0,0.7),
    0 0 80px rgba(230,57,70,0.06);
  animation: nxSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nxSlideUp {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

/* Canvas de partículas no fundo */
.nx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Tudo dentro fica acima do canvas */
.nx-modal > *:not(.nx-canvas) {
  position: relative;
  z-index: 1;
}

/* ── Header da marca ── */
.nx-modal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 24px 0;
}

.nx-brand-icon {
  width: 34px; height: 34px;
  background: rgba(230,57,70,0.1);
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}

.nx-brand-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}

/* ── Prévia do monitor ── */
.nx-screen-preview {
  position: relative;
  margin: 18px 24px 0;
  border-radius: 10px;
  overflow: hidden;
  height: 100px;
  background: #080809;
  border: 1px solid #1e1e24;
}

.nx-screen-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}

/* Scanline animada */
.nx-scanline {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(230,57,70,0.06) 40%,
    rgba(230,57,70,0.12) 50%,
    rgba(230,57,70,0.06) 60%,
    transparent 100%
  );
  animation: scanline 3s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0%   { top: -40%; }
  100% { top: 110%; }
}

/* Código da sala digitando */
.nx-screen-code {
  font-family: 'Courier New', monospace;
  font-size: 26px;
  font-weight: 900;
  color: #e63946;
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(230,57,70,0.6), 0 0 40px rgba(230,57,70,0.3);
  min-height: 34px;
}

.nx-screen-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(230,57,70,0.5);
  text-transform: uppercase;
}

/* Brilho no fundo da tela */
.nx-screen-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(230,57,70,0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Linhas de scan horizontais (CRT effect) */
.nx-screen-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
}

/* ── Corpo do modal ── */
.nx-modal-body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nx-modal-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.nx-modal-sub {
  font-size: 13px;
  color: #777;
  margin-top: -6px;
}

/* ── Input de apelido ── */
.nx-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #0d0d10;
  border: 1.5px solid #2a2a32;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.nx-input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}

.nx-input-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px 0 14px;
  flex-shrink: 0;
}

.nx-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 0;
  font-family: 'Inter', sans-serif;
}

.nx-input::placeholder { color: #3a3a44; }

.nx-input-counter {
  font-size: 11px;
  color: #3a3a44;
  padding-right: 14px;
  flex-shrink: 0;
  transition: color 0.2s;
}

/* ── Botão Entrar ── */
.nx-btn-enter {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--red);
  border: none;
  border-radius: 12px;
  padding: 0;
  height: 50px;
  cursor: pointer;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(230,57,70,0.35);
}

.nx-btn-enter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Efeito de brilho deslizante */
.nx-btn-enter::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: nxShine 2.5s ease-in-out infinite;
}

@keyframes nxShine {
  0%   { left: -100%; }
  50%  { left: 150%; }
  100% { left: 150%; }
}

.nx-btn-enter:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(230,57,70,0.45);
}

.nx-btn-enter:active { transform: translateY(0); }

.nx-btn-enter.loading .nx-btn-text { opacity: 0; }
.nx-btn-enter.loading .nx-btn-arrow { opacity: 0; }
.nx-btn-enter.loading::before { display: none; }

.nx-btn-text {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}

.nx-btn-arrow {
  display: flex;
  align-items: center;
  margin-left: 8px;
  transition: transform 0.2s, opacity 0.2s;
}

.nx-btn-enter:hover .nx-btn-arrow {
  transform: translateX(4px);
}

/* Spinner dentro do botão */
.nx-spinner {
  display: none;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
}

.nx-btn-enter.loading .nx-spinner { display: block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Footer do modal ── */
.nx-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #444;
  font-weight: 500;
}

/* ── Barra vermelha decorativa no topo ── */
.nx-modal::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
}

/* ══════════════════════════════════════
   BOTÃO VER TELA + FULLSCREEN OVERLAY
══════════════════════════════════════ */

.btn-ver-tela {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  border: none;
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(230,57,70,0.4);
  animation: pulseBtn 2s ease-in-out infinite;
}

@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 3px 14px rgba(230,57,70,0.4); }
  50%       { box-shadow: 0 3px 22px rgba(230,57,70,0.7); }
}

.btn-ver-tela:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  animation: none;
  box-shadow: 0 6px 20px rgba(230,57,70,0.5);
}

/* ── Fullscreen overlay ── */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 500;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fullscreen-overlay.open { display: flex; }

.fullscreen-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  cursor: pointer;
}
.fullscreen-video.active { display: block; }

/* Placeholder quando não há stream */
.fullscreen-no-stream {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #444;
  text-align: center;
}
.fullscreen-no-stream p {
  font-size: 16px;
  font-weight: 500;
  color: #444;
}

/* Barra superior flutuante */
.fullscreen-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
  transition: opacity 0.3s;
}

.fullscreen-overlay.hide-ui .fullscreen-topbar,
.fullscreen-overlay.hide-ui .fullscreen-hint {
  opacity: 0;
  pointer-events: none;
}

.fullscreen-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.fullscreen-room-code {
  font-family: monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 6px;
}

.fullscreen-close {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.35);
  color: #e63946;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}
.fullscreen-close:hover { background: rgba(230,57,70,0.3); }

/* Dica na parte inferior */
.fullscreen-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.4);
  padding: 5px 14px;
  border-radius: 999px;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}

/* Borda vermelha pulsante quando recebendo stream */
.fullscreen-overlay.streaming {
  box-shadow: inset 0 0 0 2px rgba(230,57,70,0.3);
}

/* ══════════════════════════════════════
   DISCORD CARD — FOOTER
══════════════════════════════════════ */

.discord-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.discord-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e63946, transparent);
}

.discord-card:hover {
  border-color: rgba(230,57,70,0.35);
  transform: translateY(-2px);
}

.discord-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.discord-logo {
  width: 54px;
  height: 54px;
  background: rgba(230,57,70,0.08);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discord-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-card-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.discord-card-stats {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: pulse-green 1.5s ease-in-out infinite;
}

.discord-card-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-sub);
  text-align: left;
}

.discord-card-desc strong {
  color: #fff;
  font-weight: 700;
}

.discord-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #5865F2;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(88,101,242,0.35);
}

.discord-card-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(88,101,242,0.5);
}

.discord-card-btn:active {
  transform: translateY(0);
}
