* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(0, 178, 255, 0.20), transparent 35%),
    radial-gradient(circle at 70% 20%, rgba(66, 255, 103, 0.10), transparent 25%),
    #030b12;
  color: #ffffff;
}

.topbar {
  height: 82px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 10, 18, 0.86);
  border-bottom: 1px solid rgba(0, 198, 255, 0.22);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #19d3ff, #1c73ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.45);
}

.brand-text {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
}

.brand-text span {
  color: #10bfff;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
}

nav a:hover {
  color: #00c8ff;
}

.copy-btn,
.hero-actions button,
.control-buttons button,
.send-row button,
.panel button {
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #04d5ff, #1977ff);
  box-shadow: 0 0 20px rgba(0, 166, 255, 0.25);
}

main {
  max-width: 1480px;
  margin: auto;
  padding: 28px 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  min-height: 520px;
  gap: 20px;
}

.hero-text h1 {
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.98;
  margin: 0 0 24px;
  letter-spacing: -3px;
}

.hero-text h1 span {
  color: #00bfff;
  text-shadow: 0 0 25px rgba(0, 191, 255, 0.35);
}

.hero-text p {
  max-width: 650px;
  color: #c7d4df;
  font-size: 20px;
  line-height: 1.55;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 640px;
  gap: 20px;
  margin: 24px 0;
}

.mini-card {
  padding: 22px;
  border-radius: 14px;
  background: rgba(5, 18, 30, 0.78);
  border: 1px solid rgba(0, 191, 255, 0.25);
}

.mini-card strong {
  display: block;
  color: #d8e8f3;
  margin-bottom: 8px;
}

.mini-card span {
  color: #00c8ff;
  font-size: 18px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  gap: 22px;
}

.hero-actions button {
  min-width: 260px;
  font-size: 16px;
}

.hero-actions .dark-btn {
  background: rgba(5, 18, 30, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 760px;
  filter: drop-shadow(0 0 45px rgba(0, 191, 255, 0.22));
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.panel {
  padding: 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(12, 27, 42, 0.92), rgba(3, 10, 18, 0.94));
  border: 1px solid rgba(0, 191, 255, 0.18);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.25);
  min-height: 300px;
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.small-btn {
  padding: 7px 11px !important;
  background: rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}

.wide {
  grid-column: span 4;
}

#chatBox {
  height: 220px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}

.msg {
  padding: 9px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.msg strong {
  color: #00c8ff;
}

input {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(0, 191, 255, 0.22);
  color: #ffffff;
  padding: 13px;
  border-radius: 10px;
  outline: none;
  margin-bottom: 10px;
}

input:focus {
  border-color: #00c8ff;
  box-shadow: 0 0 14px rgba(0, 191, 255, 0.20);
}

.send-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.control-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.control-buttons .start {
  background: linear-gradient(135deg, #00d66b, #00a846);
}

.control-buttons .stop {
  background: linear-gradient(135deg, #ff3b3b, #c51616);
}

.control-buttons .restart {
  background: linear-gradient(135deg, #ffb300, #ff7800);
}

.control-buttons .status {
  background: linear-gradient(135deg, #00c8ff, #1977ff);
}

pre {
  background: rgba(0,0,0,0.52);
  color: #00ff7b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  min-height: 130px;
  max-height: 430px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: Consolas, monospace;
  font-size: 13px;
}

#logsBox {
  min-height: 400px;
}

.monitor-panel {
  min-height: auto;
}

.monitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 22px;
}

.gauge-card,
.network-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(0, 191, 255, 0.18);
  border-radius: 18px;
  padding: 20px;
}

.gauge-card h3,
.network-card h3 {
  margin-top: 0;
  color: #d8e8f3;
}

.gauge {
  --percent: 0;
  width: 190px;
  height: 190px;
  margin: 20px auto;
  border-radius: 50%;
  background:
    conic-gradient(#00c8ff calc(var(--percent) * 1%), rgba(255,255,255,0.10) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 25px rgba(0, 200, 255, 0.25),
    inset 0 0 20px rgba(0,0,0,0.35);
}

.gauge-inner {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #06111d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.gauge-inner strong {
  font-size: 36px;
  color: #ffffff;
}

.gauge-inner span {
  color: #8fb4c8;
  font-weight: 800;
}

.monitor-info {
  color: #c7d4df;
  text-align: center;
  line-height: 1.45;
}

#networkList {
  display: grid;
  gap: 12px;
}

.net-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.08);
}

.net-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.net-name {
  font-weight: 900;
  color: #00c8ff;
}

.net-state {
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.10);
}

.net-state.up {
  color: #00ff6a;
}

.net-state.down {
  color: #ff5252;
}

.net-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.net-box {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px;
}

.net-box strong {
  display: block;
  color: #ffffff;
  margin-bottom: 4px;
}

.net-box span {
  color: #9fb7c8;
  font-size: 13px;
}

.online {
  color: #00ff6a;
  font-weight: 900;
}

.offline {
  color: #ff5252;
  font-weight: 900;
}

.hint {
  color: #aebfce;
  font-size: 14px;
  line-height: 1.45;
}

footer {
  padding: 28px;
  text-align: center;
  color: #aebfce;
}

@media (max-width: 1100px) {
  .hero,
  .grid,
  .monitor-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: span 1;
  }

  nav {
    display: none;
  }

  .topbar {
    padding: 0 20px;
  }

  main {
    padding: 20px;
  }

  .hero-cards,
  .hero-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

.net-ips {
  display: grid;
  gap: 7px;
  margin: 10px 0 12px;
}

.net-ip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.16);
  border-radius: 10px;
  padding: 9px 10px;
}

.net-ip span {
  color: #8fb4c8;
  font-size: 12px;
  font-weight: 900;
}

.net-ip strong {
  color: #ffffff;
  font-family: Consolas, monospace;
  font-size: 14px;
}

.explorer-panel {
  min-height: auto;
}

.explorer-token-row,
.explorer-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.explorer-actions {
  grid-template-columns: repeat(3, auto);
  justify-content: start;
}

.explorer-path {
  padding: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(0, 200, 255, 0.16);
  border-radius: 12px;
  color: #00c8ff;
  font-family: Consolas, monospace;
  margin-bottom: 14px;
}

.explorer-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
}

.file-list {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px;
  max-height: 620px;
  overflow-y: auto;
}

.file-row {
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.file-row:hover {
  background: rgba(0, 200, 255, 0.10);
}

.file-row span {
  font-weight: 800;
}

.file-row small {
  color: #8fb4c8;
}

.file-row.folder span {
  color: #00c8ff;
}

.file-editor {
  display: grid;
  gap: 10px;
}

.editor-header,
.editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.editor-header strong {
  color: #00c8ff;
  font-family: Consolas, monospace;
  word-break: break-all;
}

#fileEditor {
  width: 100%;
  min-height: 420px;
  background: rgba(0,0,0,0.55);
  color: #d8fff0;
  border: 1px solid rgba(0, 200, 255, 0.18);
  border-radius: 14px;
  padding: 14px;
  font-family: Consolas, monospace;
  font-size: 14px;
  resize: vertical;
}

.danger {
  background: linear-gradient(135deg, #ff3b3b, #c51616) !important;
}

@media (max-width: 1100px) {
  .explorer-layout,
  .explorer-token-row,
  .explorer-actions {
    grid-template-columns: 1fr;
  }

  .editor-header,
  .editor-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.net-ips {
  display: grid;
  gap: 7px;
  margin: 10px 0 12px;
}

.net-ip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.16);
  border-radius: 10px;
  padding: 9px 10px;
}

.net-ip span {
  color: #8fb4c8;
  font-size: 12px;
  font-weight: 900;
}

.net-ip strong {
  color: #ffffff;
  font-family: Consolas, monospace;
  font-size: 14px;
}

.context-menu {
  position: fixed;
  z-index: 9999;
  background: #07131f;
  border: 1px solid rgba(0, 200, 255, 0.35);
  border-radius: 12px;
  min-width: 210px;
  padding: 8px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.55);
  display: none;
}

.context-menu button {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
  color: #d8e8f3;
}

.context-menu button:hover {
  background: rgba(0, 200, 255, 0.13) !important;
}

.drop-zone {
  border: 2px dashed rgba(0, 200, 255, 0.35);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  margin: 12px 0;
  color: #9fdcff;
  background: rgba(0, 200, 255, 0.06);
}

.drop-zone.dragover {
  background: rgba(0, 200, 255, 0.18);
  border-color: #00c8ff;
}

.file-row.selected {
  background: rgba(0, 200, 255, 0.18);
  border: 1px solid rgba(0, 200, 255, 0.28);
}

.context-menu {
  position: fixed;
  z-index: 9999;
  background: #07131f;
  border: 1px solid rgba(0, 200, 255, 0.35);
  border-radius: 12px;
  min-width: 210px;
  padding: 8px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.55);
  display: none;
}

.context-menu button {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
  color: #d8e8f3;
}

.context-menu button:hover {
  background: rgba(0, 200, 255, 0.13) !important;
}

.drop-zone {
  border: 2px dashed rgba(0, 200, 255, 0.35);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  margin: 12px 0;
  color: #9fdcff;
  background: rgba(0, 200, 255, 0.06);
}

.drop-zone.dragover {
  background: rgba(0, 200, 255, 0.18);
  border-color: #00c8ff;
}

.file-row.selected {
  background: rgba(0, 200, 255, 0.18);
  border: 1px solid rgba(0, 200, 255, 0.28);
}

.upload-progress-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(0, 200, 255, 0.18);
}

.upload-progress-label {
  color: #d8e8f3;
  font-size: 13px;
  margin-bottom: 8px;
  font-family: Consolas, monospace;
}

.upload-progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.upload-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00c8ff, #00ff8a);
  transition: width 0.2s ease;
}

.upload-progress-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(0, 200, 255, 0.18);
}

.upload-progress-label {
  color: #d8e8f3;
  font-size: 13px;
  margin-bottom: 8px;
  font-family: Consolas, monospace;
}

.upload-progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.upload-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00c8ff, #00ff8a);
  transition: width 0.2s ease;
}

.upload-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.upload-cancel-btn {
  background: linear-gradient(135deg, #ff3b3b, #c51616) !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  box-shadow: none !important;
  min-width: auto !important;
}

.upload-progress-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(0, 200, 255, 0.18);
}

.upload-progress-label {
  color: #d8e8f3;
  font-size: 13px;
  margin-bottom: 8px;
  font-family: Consolas, monospace;
}

.upload-progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.upload-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00c8ff, #00ff8a);
  transition: width 0.2s ease;
}

.upload-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.upload-cancel-btn {
  background: linear-gradient(135deg, #ff3b3b, #c51616) !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  box-shadow: none !important;
  min-width: auto !important;
}

.upload-progress-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(0, 200, 255, 0.18);
}

.upload-progress-label {
  color: #d8e8f3;
  font-size: 13px;
  margin-bottom: 8px;
  font-family: Consolas, monospace;
}

.upload-progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.upload-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00c8ff, #00ff8a);
  transition: width 0.2s ease;
}

.upload-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.upload-cancel-btn {
  background: linear-gradient(135deg, #ff3b3b, #c51616) !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  box-shadow: none !important;
  min-width: auto !important;
}

.upload-progress-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(0, 200, 255, 0.18);
}

.upload-progress-label {
  color: #d8e8f3;
  font-size: 13px;
  margin-bottom: 8px;
  font-family: Consolas, monospace;
}

.upload-progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.upload-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00c8ff, #00ff8a);
  transition: width 0.2s ease;
}

.upload-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.upload-cancel-btn {
  background: linear-gradient(135deg, #ff3b3b, #c51616) !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  box-shadow: none !important;
  min-width: auto !important;
}

.upload-progress-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(0, 200, 255, 0.18);
}

.upload-progress-label {
  color: #d8e8f3;
  font-size: 13px;
  margin-bottom: 8px;
  font-family: Consolas, monospace;
}

.upload-progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.upload-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00c8ff, #00ff8a);
  transition: width 0.2s ease;
}

.players-panel {
  grid-column: span 2;
}

#playersSummary {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  margin-bottom: 12px;
  color: #c7d4df;
}

#playersList {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.player-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 14px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.08);
}

.player-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #00ff6a;
  box-shadow: 0 0 12px rgba(0,255,106,0.8);
}

.player-name {
  font-weight: 900;
  color: #ffffff;
}

.player-signal {
  color: #00ff9d;
  font-weight: 800;
  font-size: 13px;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.operator {
  background: linear-gradient(135deg, #ffb300, #ff7800);
  color: #1a0b00;
}

.badge.admin {
  background: linear-gradient(135deg, #ff4d4d, #b90000);
}

.badge.moderador,
.badge.mod {
  background: linear-gradient(135deg, #b167ff, #6422d6);
}

.badge.vip {
  background: linear-gradient(135deg, #00e5ff, #0077ff);
}

.badge.player {
  background: rgba(255,255,255,0.10);
  color: #c7d4df;
}

@media (max-width: 1100px) {
  .players-panel {
    grid-column: span 1;
  }

  .player-row {
    grid-template-columns: 1fr;
  }
}

.top-login {
  display: flex;
  gap: 8px;
  align-items: center;
}

.top-login input {
  width: 150px;
  margin: 0;
  padding: 10px;
}

.top-login button {
  padding: 10px 13px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #04d5ff, #1977ff);
}

.top-login .logout-btn {
  background: linear-gradient(135deg, #ff3b3b, #c51616);
}

.top-login.logged input {
  border-color: #00ff8a;
  box-shadow: 0 0 12px rgba(0,255,138,0.25);
}

@media (max-width: 1100px) {
  .top-login {
    width: 100%;
    margin-top: 8px;
  }

  .top-login input {
    width: 100%;
  }
}

.login-user-info {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #b8c7d4;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.login-user-info.logged {
  background: rgba(0,255,138,0.12);
  color: #00ff8a;
  border: 1px solid rgba(0,255,138,0.25);
}

[data-admin-only="true"] {
  transition: opacity 0.2s ease;
}

.token-panel {
  min-height: auto;
}

.token-form {
  display: grid;
  grid-template-columns: 1fr 180px 1fr auto;
  gap: 10px;
  margin: 16px 0;
}

.token-form select,
.token-row select {
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: 1px solid rgba(0, 191, 255, 0.22);
  border-radius: 10px;
  padding: 12px;
}

.tokens-list {
  display: grid;
  gap: 10px;
}

.token-row {
  display: grid;
  grid-template-columns: 1fr 160px 1.4fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1100px) {
  .token-form,
  .token-row {
    grid-template-columns: 1fr;
  }
}

.player-context-menu {
  min-width: 240px;
}

.player-context-menu button {
  font-size: 13px;
}

.player-row {
  cursor: context-menu;
}

.player-row:hover {
  background: rgba(0, 200, 255, 0.10);
  border-color: rgba(0, 200, 255, 0.25);
}

.layout-custom {
  position: relative;
  display: block !important;
  min-height: 900px;
}

.layout-custom > .panel {
  margin: 0 !important;
  overflow: auto;
}

.layout-edit-mode > .panel {
  outline: 2px dashed rgba(0, 200, 255, 0.55);
  cursor: move;
  user-select: none;
}

.layout-edit-mode > .panel:hover {
  box-shadow: 0 0 35px rgba(0, 200, 255, 0.25);
}

.resize-handle {
  display: none;
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-right: 3px solid #00c8ff;
  border-bottom: 3px solid #00c8ff;
  cursor: nwse-resize;
  opacity: 0.85;
}

.layout-edit-mode .resize-handle {
  display: block;
}

.top-login button {
  white-space: nowrap;
}

.topbar {
  z-index: 99999 !important;
}

.layout-custom,
.grid {
  z-index: 1 !important;
}

.layout-custom > .panel {
  z-index: 2;
}

.context-menu,
.player-context-menu {
  z-index: 100000 !important;
}

[data-layout-button="true"] {
  display: none;
}

.layout-gear-wrap {
  position: relative;
  display: none;
  align-items: center;
}

.layout-gear-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0, 200, 255, 0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.layout-gear-btn:hover {
  background: rgba(0, 200, 255, 0.18);
}

.layout-gear-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  background: #07131f;
  border: 1px solid rgba(0, 200, 255, 0.28);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
  z-index: 100001;
}

.layout-gear-menu button {
  width: 100%;
  text-align: left;
  background: transparent !important;
  box-shadow: none !important;
  padding: 11px 12px !important;
  border-radius: 10px;
}

.layout-gear-menu button:hover {
  background: rgba(0, 200, 255, 0.12) !important;
}

.copy-btn.copied {
  background: linear-gradient(135deg, #00ff8a, #00b85c) !important;
}

#logoutBtn,
#loginUserInfo {
  display: none;
}

.auth-only,
#logoutBtn,
#loginUserInfo {
  display: none;
}

.copy-btn.copied-state {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 18px rgba(255,255,255,0.35) !important;
}

.empty-players {
  opacity: 0.82;
  text-align: center;
  padding: 28px 14px;
  font-size: 15px;
}

.empty-players {
  opacity: 0.82;
  text-align: center;
  padding: 28px 14px;
  font-size: 15px;
}

.empty-players-big {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 42px 18px;
  opacity: 0.92;
}

html:not(.minebr-authenticated) [data-admin-only="true"],
html:not(.minebr-authenticated) #control,
html:not(.minebr-authenticated) #console,
html:not(.minebr-authenticated) #monitoramento,
html:not(.minebr-authenticated) #explorador,
html:not(.minebr-authenticated) #logs,
html:not(.minebr-authenticated) #tokens {
  display: none !important;
  visibility: hidden !important;
}
