/* =============================================================================
   BRADOX PLAY / HUB — DESIGN SYSTEM OFICIAL (BRAND KIT 2024)
   Cores: #F4C430 (Dourado Principal), #C9930B (Dourado Escuro),
          #090A0C (Preto Carvão), #071A1F (Azul Petróleo), #1A2A31 (Cinza Apoio)
   Tipografia: Montserrat (Títulos/Logo) + Inter (Textos)
   ============================================================================= */

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

:root {
  color-scheme: dark;
  
  /* Brand Tokens Oficiais */
  --gold: #F4C430;
  --gold-dark: #C9930B;
  --gold-deep: #8C5707;
  --gold-pale: #FFE7A3;
  --gold-glow: rgba(244, 196, 48, 0.28);
  --gold-glow-high: rgba(244, 196, 48, 0.55);
  
  --bg: #090A0C;
  --bg-petrol: #071A1F;
  --surface: #0E171C;
  --surface-2: #121E24;
  --surface-3: #1A2A31;
  --surface-hover: #223740;
  
  --line: #1F2E36;
  --line-gold: rgba(244, 196, 48, 0.22);
  --line-gold-active: rgba(244, 196, 48, 0.6);
  
  --text: #F5EFE4;
  --text-muted: #8E9CA6;
  --text-sub: #ADB9C2;
  
  --green: #4ADE80;
  --red: #F87171;
  --blue: #38BDF8;
  
  --font-title: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --gold-gradient: linear-gradient(135deg, #8C5707 0%, #C9930B 28%, #F4C430 52%, #FFE7A3 68%, #C9930B 100%);
  --gold-btn: linear-gradient(135deg, #F4C430 0%, #E6AC20 60%, #C9930B 100%);
  --surface-gradient: linear-gradient(180deg, rgba(18, 30, 36, 0.85) 0%, rgba(14, 23, 28, 0.95) 100%);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 15%, rgba(7, 26, 31, 0.6) 0%, transparent 60%),
                    radial-gradient(circle at 85% 85%, rgba(201, 147, 11, 0.08) 0%, transparent 50%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }

svg.ico {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.svg-store { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Tipografia */
h1, h2, h3, .brand strong, .btn, .eyebrow, .stat .value {
  font-family: var(--font-title);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.15;
  margin: 6px 0 10px;
  font-weight: 800;
  color: var(--text);
}
h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
p { margin: 0; }
.muted { color: var(--text-muted); }
.sub { color: var(--text-sub); font-size: 14px; }

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 800;
}

/* Layout Shell */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

/* Sidebar */
.side {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  background: #070D10;
  border-right: 1px solid var(--line);
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.brand {
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-emblem-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--gold-glow));
}
.brand-text-col {
  display: flex;
  flex-direction: column;
}
.brand strong {
  display: block;
  letter-spacing: 0.14em;
  font-size: 16px;
  font-weight: 900;
  color: #FFF;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub {
  display: block;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-top: 2px;
}
.brand small {
  display: block;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 600;
  margin-top: 3px;
  text-transform: uppercase;
}

.side-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #6C7D8A;
  padding-left: 14px;
  margin: 0 0 10px;
  text-transform: uppercase;
  font-weight: 800;
}

.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  background: transparent;
  color: #9FB0BC;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.nav button:hover {
  background: rgba(18, 30, 36, 0.7);
  color: #FFF;
  border-color: var(--line);
}
.nav button.active {
  background: rgba(244, 196, 48, 0.08);
  color: var(--gold);
  border-color: var(--line-gold-active);
  font-weight: 700;
  box-shadow: inset 0 0 16px rgba(244, 196, 48, 0.06);
}
.nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.side-foot {
  margin-top: auto;
  padding: 18px 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}
.side-foot a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: rgba(244, 196, 48, 0.08);
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.side-foot a:hover {
  background: rgba(244, 196, 48, 0.15);
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}

/* Main Content */
.main {
  min-width: 0;
  padding: 28px clamp(20px, 4vw, 56px) 70px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.userpill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 6px 14px 6px 6px;
  color: var(--text);
  font-size: 13px;
}
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--gold-btn);
  color: #12100A;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
}
.circle-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text-sub);
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}
.circle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* Botões */
.btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.18s ease;
}
.btn:hover {
  border-color: #3B5360;
  background: var(--surface-hover);
}
.btn.primary {
  background: var(--gold-btn);
  color: #0E0D08;
  border: 1px solid #FFD966;
  box-shadow: 0 2px 14px var(--gold-glow);
  font-weight: 800;
}
.btn.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 22px var(--gold-glow-high);
}
.btn.danger {
  color: #FFB4AD;
  border-color: #6A2C2C;
  background: rgba(106, 44, 44, 0.2);
}
.btn.danger:hover {
  background: rgba(106, 44, 44, 0.45);
  border-color: var(--red);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Cards e Estatísticas */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface-gradient);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 16px;
  padding: 22px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.stat::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}
.stat .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.stat .value {
  font-size: 38px;
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 900;
  margin-top: 14px;
  color: #FFF;
}
.stat .value.gold-value {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .value.green-value {
  color: var(--green);
}
.stat .extra {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 12px;
}
.stat .badgeico {
  position: absolute;
  right: 18px;
  top: 20px;
  color: var(--gold);
}

/* Painéis e Tabelas */
.panel {
  background: var(--surface-gradient);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 30, 36, 0.5);
}
.panel-head h2 { font-size: 18px; font-weight: 800; }
.panel-head p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  background: rgba(10, 18, 22, 0.85);
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(31, 46, 54, 0.6);
  color: var(--text);
  font-size: 14px;
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(26, 42, 49, 0.4); }

.device-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.device-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(244, 196, 48, 0.1);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  display: grid;
  place-items: center;
}
.device-cell strong { display: block; color: #FFF; font-size: 14px; font-weight: 700; }
.device-cell small { display: block; color: var(--text-muted); font-size: 12px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 30px;
  border: 1px solid var(--line);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--surface-3);
}
.tag.good {
  color: #86EFAC;
  background: rgba(22, 60, 40, 0.5);
  border-color: rgba(74, 222, 128, 0.4);
}
.tag.warn {
  color: #FDE047;
  background: rgba(74, 58, 20, 0.5);
  border-color: rgba(244, 196, 48, 0.4);
}
.tag.bad {
  color: #FCA5A5;
  background: rgba(68, 30, 32, 0.5);
  border-color: rgba(248, 113, 113, 0.4);
}
.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.action-link {
  background: transparent;
  border: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  padding: 6px;
  transition: all 0.15s ease;
}
.action-link:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}

.empty {
  padding: 52px 30px;
  text-align: center;
  color: var(--text-muted);
}
.empty strong {
  display: block;
  color: #FFF;
  font-size: 18px;
  font-family: var(--font-title);
  margin: 10px 0 4px;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
}
.info-panel { padding: 26px; }
.info-panel p {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 10px;
  line-height: 1.7;
}
.status-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.status-item {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.status-item span:first-child { color: var(--text-muted); }
.highlight { color: var(--gold); font-weight: 800; }

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 18px;
}
.search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 10px;
  min-width: 290px;
}
.search input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #FFF;
  min-width: 140px;
  width: 100%;
  font-size: 14px;
}
.search svg { width: 18px; color: var(--text-muted); }
.filter-note { font-size: 12px; color: var(--text-muted); }

/* Modais */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
  backdrop-filter: blur(8px);
  animation: confirmOverlayFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.modal {
  width: min(100%, 580px);
  max-height: 90vh;
  overflow-y: auto;
  background: #0B1419;
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 40px rgba(244, 196, 48, 0.08);
  animation: confirmPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 30, 36, 0.5);
}
.modal-head h2 { font-size: 20px; font-weight: 800; }
.modal-body { padding: 26px; }

/* Modal de Confirmação & Alertas (Substitui popups nativos) */
.overlay.confirm-overlay {
  z-index: 1000;
  animation: confirmOverlayFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes confirmOverlayFade {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(10px); }
}

.modal.confirm-modal {
  width: min(100%, 460px);
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(244, 196, 48, 0.3);
  background: radial-gradient(130% 130% at 50% 0%, #13242E 0%, #090E12 100%);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.9), 0 0 50px rgba(244, 196, 48, 0.12);
  animation: confirmPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}
@keyframes confirmPop {
  from { opacity: 0; transform: scale(0.9) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.confirm-dialog-content {
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.confirm-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  transition: transform 0.2s;
}
.confirm-icon-badge svg {
  width: 32px;
  height: 32px;
}

.confirm-icon-badge.gold {
  background: rgba(244, 196, 48, 0.12);
  border: 1.5px solid rgba(244, 196, 48, 0.45);
  color: var(--gold);
  box-shadow: 0 0 28px rgba(244, 196, 48, 0.22);
}
.confirm-icon-badge.danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  color: #EF4444;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.22);
}

.confirm-modal-title {
  font-size: 21px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.confirm-modal-msg {
  font-size: 14.5px;
  line-height: 1.6;
  color: #9FB2BE;
  margin: 0 0 28px 0;
  max-width: 380px;
}

.confirm-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.confirm-btn-cancel {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #AEC0CC;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.confirm-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.confirm-btn-ok {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
}
.confirm-btn-ok.gold {
  background: var(--gold-btn);
  color: #0E0D08;
  border: 1px solid #FFD966;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.confirm-btn-ok.gold:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 28px var(--gold-glow-high);
  transform: translateY(-1px);
}

.confirm-btn-ok.danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFF;
  border: 1px solid rgba(255, 120, 120, 0.4);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}
.confirm-btn-ok.danger:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 26px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: #060B0E;
  color: #FFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: 0;
  min-height: 46px;
  transition: all 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}
.field textarea { min-height: 95px; resize: vertical; }
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.detail-box {
  background: #070D10;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 12px;
}
.detail-box small {
  color: var(--text-muted);
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.detail-box strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  color: #FFF;
}
.note {
  padding: 14px 18px;
  background: rgba(201, 147, 11, 0.1);
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  color: var(--gold-pale);
  font-size: 13px;
  line-height: 1.6;
}
.mt { margin-top: 18px; }

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gold-btn);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.chart-card {
  background: #070D10;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.btn-group {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.btn-tab {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 0;
  cursor: pointer;
}
.btn-tab.active {
  background: var(--gold);
  color: #090A0C;
}

/* TV Preview Mockup & Branding */
.tv-mockup-frame {
  background: #090A0C;
  border: 2px solid var(--line-gold);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}
.tv-mockup-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.tv-mockup-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tv-mockup-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.tv-mockup-hero {
  background: var(--surface-gradient);
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.tv-mockup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tv-mockup-app {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}
.upload-dropzone {
  border: 2px dashed var(--line-gold);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(244, 196, 48, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}
.upload-dropzone:hover {
  background: rgba(244, 196, 48, 0.08);
  border-color: var(--gold);
}


/* =============================================================================
   TELA DE LOGIN OFICIAL — BRADOX PLAY BRAND KIT
   ============================================================================= */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--bg);
}

.login-hero {
  position: relative;
  padding: 70px clamp(35px, 7vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(ellipse at 35% 45%, rgba(201, 147, 11, 0.22) 0%, rgba(7, 26, 31, 0.75) 45%, #090A0C 100%),
              url('/brand/bg-texture.jpg') center/cover no-repeat;
  border-right: 1px solid var(--line-gold);
  overflow: hidden;
}
.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(9, 10, 12, 0.5) 0%, rgba(9, 10, 12, 0.85) 100%);
  pointer-events: none;
}
.login-hero > * { position: relative; z-index: 2; }

.login-brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}
.login-hero-emblem {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px var(--gold-glow-high));
}
.login-hero-titles h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.18em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1;
}
.login-hero-titles .brand-sub {
  font-size: 13px;
  letter-spacing: 0.28em;
  display: block;
  margin-top: 3px;
}
.login-hero-titles p {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 6px;
}

.login-hero-center {
  margin: 60px 0;
}
.login-hero h1 {
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  margin: 22px 0;
  color: #FFF;
}
.login-hero p.desc {
  max-width: 520px;
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.7;
}

.pill {
  font-size: 11px;
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  color: var(--gold);
  background: rgba(244, 196, 48, 0.08);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-footer {
  font-size: 12px;
  color: #72828F;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Card de Login */
.login-card-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  background: #090A0C;
}
.login-card {
  width: min(440px, 100%);
  background: var(--surface-gradient);
  border: 1px solid var(--line-gold);
  border-radius: 22px;
  padding: 44px 38px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 35px rgba(244, 196, 48, 0.06);
}
.login-card h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 8px 0 10px;
  color: #FFF;
}
.login-card p.sub {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 14px;
}
.login-card .field { margin-bottom: 18px; }
.login-card .btn {
  width: 100%;
  margin-top: 10px;
  height: 50px;
  font-size: 15px;
}
.error-message {
  font-size: 13px;
  color: var(--red);
  margin-top: 12px;
  min-height: 24px;
  text-align: center;
  font-weight: 600;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 80;
  background: #0E171C;
  color: var(--text);
  border: 1px solid var(--line-gold);
  padding: 14px 22px;
  border-radius: 12px;
  display: none;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.7);
  font-size: 14px;
  font-weight: 600;
}
#toast.show { display: block; animation: slideUp 0.2s ease; }
#toast.bad {
  background: #3B1B1C;
  color: #FFAAA6;
  border-color: var(--red);
}

@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsividade */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 220px 1fr; }
}
@media (max-width: 820px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { min-height: 380px; padding: 40px 25px; }
  .login-card-wrap { padding: 30px 20px 60px; }
  .shell { display: block; }
  .side { position: relative; max-height: none; gap: 16px; padding: 18px; }
  .side-foot { display: none; }
  .nav { display: flex; overflow-x: auto; padding-bottom: 6px; }
  .nav button { white-space: nowrap; padding: 10px 14px; font-size: 13px; }
}
