/* css/transmissao.css
   =======================================================
   Live Broadcast Studio & Overlay — FutOverlay Style
   Dark Cinematic Stadium Aesthetics with Glassmorphism
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #070913;
  --bg-card: rgba(13, 15, 26, 0.72);
  --bg-card-border: rgba(139, 92, 246, 0.28);
  --bg-card-hover: rgba(22, 26, 44, 0.85);
  
  --primary-glow: #8b5cf6;
  --primary-accent: #9a75f0;
  --cyan-accent: #06b6d4;
  --rose-accent: #f43f5e;
  --gold-accent: #fbbf24;
  
  --rating-bad: #ef4444;
  --rating-avg: #eab308;
  --rating-good: #22c55e;
  --rating-top: #a855f7;
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: #ffffff;
}

/* ─── Background de Estádio Cinematográfico com Campo de Futebol Desfocado ─── */
.broadcast-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #050711;
  overflow: hidden;
}

/* Camada com o campo de futebol desfocado (blur) e gradientes de contraste */
.broadcast-stage::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background: 
    linear-gradient(180deg, rgba(6, 8, 18, 0.68) 0%, rgba(5, 7, 16, 0.78) 45%, rgba(3, 4, 10, 0.90) 100%),
    radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.1) 0%, rgba(4, 6, 14, 0.72) 80%),
    url('/assets/stadium_bg.jpg') center bottom / cover no-repeat;
  filter: blur(8px) saturate(1.15) brightness(0.92);
  transform: scale(1.05); /* Evita bordas brancas com o blur */
  pointer-events: none;
  z-index: 0;
}

/* Efeito de holofotes do estádio */
.broadcast-stage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 280px;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse at 80% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* ─── BARRA SUPERIOR DO ADMIN (CONTROLE SUPER MESTRE) ─── */
.admin-control-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: rgba(10, 12, 22, 0.95);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 9999;
  font-size: 13px;
  transition: transform 0.3s ease;
}

.admin-control-bar.hidden-obs {
  transform: translateY(-100%);
}

.admin-control-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-badge {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.match-select {
  background: #151828;
  border: 1px solid #2e3450;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  max-width: 320px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-admin {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-admin:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: #8b5cf6;
}

.btn-admin.active {
  background: #7c3aed;
  border-color: #a78bfa;
}

/* ─── TOPO: SCOREBOARD BROADCAST ─── */
.scoreboard-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
  margin-bottom: 6px;
}

.clock-pill {
  background: rgba(13, 15, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.clock-pulse {
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #ef4444; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.scoreboard-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Logos de Patrocinadores (Fulltbet & Full Trader) */
.scoreboard-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 6px 22px;
  background: rgba(13, 15, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.scoreboard-brand:hover {
  border-color: rgba(253, 184, 15, 0.6);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 18px rgba(253, 184, 15, 0.35);
  transform: translateY(-2px);
}

/* Espaço ampliado entre placares e logos */
.scoreboard-brand.brand-left {
  margin-right: 48px;
}

.scoreboard-brand.brand-right {
  margin-left: 48px;
}

/* Fulltbet: Aumentado em 200% */
.scoreboard-brand.brand-left .brand-logo-img {
  height: 50px;
  max-height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

/* Full Trader: Aumentado em 100% */
.scoreboard-brand.brand-right .brand-logo-img {
  height: 42px;
  max-height: 44px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

.team-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-header.home {
  flex-direction: row;
}

.team-header.away {
  flex-direction: row-reverse;
}

.team-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.team-shield-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.team-shield-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.score-dash {
  font-size: 38px;
  opacity: 0.6;
}

.scoreboard-meta {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─── CORPO PRINCIPAL: 3 COLUNAS (ESCALAÇÃO ESQ - QUADRO CENTRAL - ESCALAÇÃO DIR) ─── */
.broadcast-body {
  position: relative;
  z-index: 10;
  flex: 1;
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  grid-template-rows: 1fr;
  gap: 16px;
  padding: 0 20px;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  height: calc(100vh - 210px);
}

/* ─── COLUNAS LATERAIS (ESCALAÇÕES) ─── */
.lineup-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  height: 100%;
  padding: 2px 0;
}

.player-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0 8px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.player-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateX(2px);
}

.lineup-column.away .player-card:hover {
  transform: translateX(-2px);
}

/* Layout Mandante (Esquerda): [Rating] [Nome] [Num] */
.player-card.home-player {
  flex-direction: row;
}

/* Layout Visitante (Direita): [Num] [Nome] [Rating] */
.player-card.away-player {
  flex-direction: row;
}

.player-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-info-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.player-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #000000;
  border-radius: 4px;
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Badges de Ratings Coloridos (Opta style) */
.player-rating {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
  display: inline-block;
}

.rating-top { background: linear-gradient(135deg, #0d9488, #059669); }
.rating-good { background: #16a34a; }
.rating-avg { background: #ca8a04; }
.rating-bad { background: #b91c1c; }
.rating-master { background: linear-gradient(135deg, #7c3aed, #a855f7); }

/* Ícones de Eventos (Cartão amarelo, vermelho, gol) */
.event-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin: 0 2px;
}

.event-yellow {
  width: 9px;
  height: 13px;
  background: #ffcc00;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
}

.event-red {
  width: 9px;
  height: 13px;
  background: #ef4444;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.event-goal {
  font-size: 13px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

/* ─── QUADRO CENTRAL (VIDEO + ESTATÍSTICAS / MOMENTUM / CAMPINHO) ─── */
.center-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

/* ─── QUADRO BRANCO / TRANSMISSÃO (PLAYER MULTI-CAMERAS) ─── */
.broadcast-player-frame {
  position: relative;
  flex: 1;
  min-height: 280px;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(139, 92, 246, 0.2);
  display: flex;
  flex-direction: column;
}

/* Barra de Câmeras no topo do frame */
.cam-switcher-bar {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  pointer-events: auto;
}

.cam-buttons {
  display: flex;
  gap: 8px;
  background: rgba(10, 12, 24, 0.8);
  backdrop-filter: blur(12px);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-cam {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-cam:hover {
  background: rgba(139, 92, 246, 0.4);
}

.btn-cam.active {
  background: #7c3aed;
  border-color: #a78bfa;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.7);
}

.cam-mode-selector {
  display: flex;
  gap: 6px;
  background: rgba(10, 12, 24, 0.8);
  backdrop-filter: blur(12px);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-mode {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-mode.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Área de Vídeo / Telas das Câmeras */
.video-surface {
  position: relative;
  width: 100%;
  height: 100%;
  background: #05060b;
}

/* Câmeras */
.cam-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: #000;
}

.cam-container.active-main {
  display: block;
  z-index: 10;
}

.cam-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modo Picture-in-Picture (PiP) */
.cam-container.pip-secondary {
  display: block !important;
  width: 220px;
  height: 124px;
  top: auto;
  left: auto;
  bottom: 16px;
  right: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #8b5cf6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  z-index: 40;
}

/* Modo Split / Duas Câmeras */
.video-surface.mode-split .cam-container:nth-child(1) {
  display: block !important;
  width: 50% !important;
  height: 100% !important;
  left: 0 !important;
  border-right: 1px solid #333;
}

.video-surface.mode-split .cam-container:nth-child(2) {
  display: block !important;
  width: 50% !important;
  height: 100% !important;
  left: 50% !important;
}

/* Overlay Placeholder caso nenhuma câmera esteja ligada */
.cam-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  gap: 12px;
  background: radial-gradient(circle, #101428 0%, #060812 100%);
}

.cam-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

/* ─── PAINEL INFERIOR: ESTATÍSTICAS + (MOMENTUM & CAMPINHO) ─── */
.bottom-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  height: 200px;
}

/* 1. Box de Estatísticas */
.stats-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 16px;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
}

.stat-name {
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.stat-val-home {
  color: #ffffff;
  font-family: var(--font-display);
}

.stat-val-away {
  color: #ffffff;
  font-family: var(--font-display);
}

.stat-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  gap: 2px;
}

.stat-bar-home {
  height: 100%;
  background: var(--primary-accent);
  border-radius: 4px 0 0 4px;
  transition: width 0.5s ease;
}

.stat-bar-away {
  height: 100%;
  background: var(--cyan-accent);
  border-radius: 0 4px 4px 0;
  transition: width 0.5s ease;
}

/* 2. Box de Momentum & Campinho */
.momentum-pitch-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 14px;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.momentum-pitch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* Social Ticker YouTube */
.social-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-ticker:hover {
  background: rgba(255, 0, 0, 0.16);
  border-color: rgba(255, 0, 0, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.social-icon-box {
  background: #ff0000;
  width: 20px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(255, 0, 0, 0.4);
}

/* Tab selector: Momentum vs Campinho */
.tabs-switch {
  display: flex;
  gap: 4px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
}

.tab-btn.active {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
  border-color: #8b5cf6;
}

/* Conteúdo da Aba Momentum */
.tab-content-momentum {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.momentum-graph-container {
  width: 100%;
  height: 130px;
  position: relative;
}

/* Conteúdo da Aba Campinho 2D */
.tab-content-pitch {
  flex: 1;
  display: none;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #143820;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-content-pitch.active {
  display: block;
}

/* Estilo do Campinho Tático 2D */
.tactical-pitch {
  width: 100%;
  height: 100%;
  position: relative;
  background: 
    repeating-linear-gradient(90deg, #163d23 0, #163d23 30px, #1a4528 30px, #1a4528 60px);
}

/* Marcações do campo */
.pitch-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-half-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.pitch-player-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.pitch-player-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  border: 1px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.pitch-player-node.home .pitch-player-dot {
  background: #eab308;
  color: #000;
}

.pitch-player-node.away .pitch-player-dot {
  background: #38bdf8;
  color: #000;
}

.pitch-player-label {
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  margin-top: 1px;
}

/* ─── RODAPÉ INSTITUCIONAL: ALERTA DO MINISTÉRIO DA FAZENDA ─── */
.broadcast-disclaimer {
  position: relative;
  z-index: 10;
  height: 38px;
  min-height: 38px;
  background: rgba(8, 10, 20, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.disclaimer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
  width: 100%;
}

.disclaimer-badge {
  font-size: 15px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

.disclaimer-text {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #fbbf24; /* Amarelo institucional de alerta oficial */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
}

/* ─── MODAL DE CONFIGURAÇÃO DE CÂMERAS ─── */
.modal-cameras-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-cameras-overlay.open {
  display: flex;
}

.modal-cameras-card {
  background: #111424;
  border: 1px solid #3b4268;
  border-radius: 12px;
  width: 540px;
  max-width: 95vw;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cam-config-row {
  margin-bottom: 14px;
}

.cam-config-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #a78bfa;
  margin-bottom: 4px;
}

.cam-config-inputs {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
}

.cam-type-select, .cam-url-input {
  background: #1a1e34;
  border: 1px solid #2e3558;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ─── TELA DE BLOQUEIO / NÃO AUTORIZADO (GUARD SUPER ADMIN) ─── */
.access-denied-gate {
  position: fixed;
  inset: 0;
  background: #090b16;
  z-index: 999999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.access-denied-gate.active {
  display: flex;
}

.gate-card {
  background: rgba(18, 21, 38, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 36px 40px;
  border-radius: 16px;
  max-width: 460px;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.2);
}

.gate-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.gate-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #f87171;
}

.gate-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.5;
}
