/* ===== Estilos principais do index (index.css) ===== */
/* ============================================================
   MASTERS OF WAR — main.css
   Base, variáveis, layout, header, hero, footer, utilitários
   ============================================================ */

/* ---------- ROOT VARS ---------- */
:root {
  --bg:       #040e07;
  --bg2:      #061309;
  --card:     #081a0c;
  --card2:    #0a1f10;
  --accent:   #25d35a;
  --accent2:  #14b84a;
  --accent3:  #0d8c38;
  --gold:     #d4a017;
  --red:      #cc2200;
  --muted:    #7ab890;
  --text:     #d0f0dc;
  --glass:    rgba(0,255,80,0.04);
  --border:   rgba(0,255,100,0.08);
  --glow:     0 0 20px rgba(37,211,90,0.15);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

/* ---------- SCANLINE OVERLAY ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ---------- NOISE TEXTURE ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

/* ---------- HEADER / NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4,14,7,0.92);
  border-bottom: 1px solid rgba(37,211,90,0.2);
  backdrop-filter: blur(12px);
  padding: 0 24px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-wrap img {
  height: 44px;
  filter: drop-shadow(0 0 8px rgba(37,211,90,0.6));
}
.logo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(37,211,90,0.5);
}
.logo-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-btn {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--accent);
  transition: all .2s;
}
.nav-btn:hover,
.nav-btn.active {
  color: var(--accent);
  border-color: rgba(37,211,90,0.2);
  background: rgba(37,211,90,0.05);
  text-shadow: 0 0 8px rgba(37,211,90,0.4);
}
.nav-btn.active::after {
  left: 10%;
  right: 10%;
}
.login-btn {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 9px;
  border: 1px solid rgba(37,211,90,0.35);
  border-radius: 5px;
  background: rgba(37,211,90,0.05);
  color: var(--accent);
  cursor: pointer;
  margin-left: 0;
  transition: all .2s;
  white-space: nowrap;
  text-transform: uppercase;
}
.login-btn:hover {
  background: rgba(37,211,90,0.1);
  color: #fff;
}

/* ---------- HERO BANNER ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #000 0%, #031008 30%, #051a0c 60%, #020a05 100%);
  padding: 60px 24px 50px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(20,184,74,0.12) 0%, transparent 70%);
}
.hero-logo {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 90%;
  filter: drop-shadow(0 0 40px rgba(37,211,90,0.4)) drop-shadow(0 4px 20px rgba(0,0,0,0.8));
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero-tagline {
  position: relative;
  z-index: 1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 16px;
  animation: fadeInUp 1.2s ease both;
}
.hero-visits {
  position: relative;
  z-index: 1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 10px;
  opacity: 0.75;
  animation: fadeInUp 1.2s ease both;
}
.hero-visits span { color: var(--accent); font-weight: 700; }

/* ---------- PAGE TRANSITIONS ---------- */
.page {
  display: none;
  animation: pageIn .3s ease both;
}
.page.active {
  display: block;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- SHARED SECTION LAYOUT ---------- */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 3px;
  color: var(--accent2);
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(37,211,90,0.3);
}
.section-title span { color: var(--gold); }
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--accent3), transparent);
  margin-bottom: 28px;
}

/* ---------- CARD ---------- */
.card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--glow);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card-link {
  cursor: pointer;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(37,211,90,0.3);
}
.card-icon { font-size: 36px; margin-bottom: 8px; }
.card-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 2px;
}
.card-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
footer span { color: var(--accent3); }

/* ---------- UTILITIES ---------- */
.hidden { display: none !important; }
.text-accent  { color: var(--accent); }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--muted); }
.text-red     { color: var(--red); }
.mono         { font-family: 'Share Tech Mono', monospace; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* ---------- MODAL ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.modal.show { display: flex; }
.modal-box {
  background: var(--card);
  border-radius: 14px;
  padding: 28px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 40px rgba(14,255,100,0.2);
  border: 1px solid rgba(0,255,120,0.15);
}
.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--accent2);
  margin-bottom: 20px;
}
.modal-input {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: rgba(0,255,100,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
}
.modal-input:focus {
  outline: none;
  border-color: var(--accent2);
}
.modal-error {
  color: var(--red);
  font-size: 13px;
  margin-top: -4px;
  margin-bottom: 8px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn-primary {
  flex: 1;
  padding: 10px;
  background: var(--accent2);
  color: #040e07;
  border: none;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}
.btn-primary:hover { background: var(--accent); }
.btn-secondary {
  flex: 1;
  padding: 10px;
  background: var(--glass);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
}
.btn-secondary:hover { background: rgba(37,211,90,0.08); color: #fff; }

/* ============================================================
   MASTERS OF WAR — home.css
   Estilos exclusivos da página Home
   ============================================================ */

/* ---------- SERVER STATUS BAR ---------- */
.server-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card2);
  border-radius: 10px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.dot-live {
  animation: none !important;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: none;
  flex-shrink: 0;
}
.server-ip {
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
}
.server-clock {
  margin-left: auto;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- CLAN INFO GRID ---------- */
.clan-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.clan-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.info-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.info-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 20px;
  color: var(--accent);
}
.clan-desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- NEWS FEED ---------- */
.news-item {
  background: var(--card);
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent3);
  margin-bottom: 12px;
  transition: border-left-color .2s;
}
.news-item:hover {
  border-left-color: var(--accent);
}
.news-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}
.news-headline {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 6px;
}
.news-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .clan-info-grid { grid-template-columns: 1fr; }
  .server-status-bar { gap: 8px; }
  .server-clock { margin-left: 0; width: 100%; }
}

/* ---------- ABOUT / CLAN SECTION ---------- */
.clan-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 700px) { .clan-about-grid { grid-template-columns: 1fr; } }

.clan-stats-grid-6 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.clan-achievement {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.clan-achievement:last-child { border-bottom: none; }
.ach-icon { font-size: 18px; flex-shrink: 0; }

.req-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.req-item:last-child { border-bottom: none; }
.req-bullet { color: var(--accent3); font-size: 13px; flex-shrink: 0; margin-top: 1px; }

.clan-desc-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 10px;
}

.card-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--accent2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   MASTERS OF WAR — downloads.css
   Estilos exclusivos da página Downloads / FTP
   ============================================================ */

/* ---------- FTP TOOLBAR ---------- */
.ftp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ftp-path {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}
.ftp-search {
  padding: 7px 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  width: 220px;
}
.ftp-search:focus {
  outline: none;
  border-color: var(--accent2);
}
.ftp-search::placeholder { color: var(--muted); }

/* ---------- FTP TABLE HEADER ---------- */
.ftp-header {
  display: grid;
  grid-template-columns: 2fr 100px 120px 90px 130px;
  gap: 12px;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

/* ---------- FTP ROWS ---------- */
.ftp-row {
  display: grid;
  grid-template-columns: 2fr 100px 120px 90px 130px;
  gap: 12px;
  padding: 13px 16px;
  align-items: center;
  background: var(--card);
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  transition: all .2s;
}
.ftp-row:hover {
  background: var(--card2);
  border-color: rgba(37,211,90,0.25);
  transform: translateX(4px);
}
.ftp-name {
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ftp-name .ftp-icon { font-size: 18px; flex-shrink: 0; }
.ftp-version {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  background: rgba(37,211,90,0.1);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(37,211,90,0.2);
  display: inline-block;
  text-align: center;
}
.ftp-version-unknown {
  background: rgba(122,184,144,0.07);
  color: var(--muted);
  border-color: rgba(122,184,144,0.15);
  opacity: .7;
}
.ftp-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.ftp-size {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}
.dl-btn {
  background: linear-gradient(135deg, var(--accent3), var(--accent2));
  color: #040e07;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  width: 100%;
}
.dl-btn:hover {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 0 12px rgba(37,211,90,0.4);
  transform: scale(1.02);
}

/* ---------- EMPTY STATE ---------- */
.ftp-empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- ADMIN NOTE ---------- */
.upload-note {
  background: rgba(212,160,23,0.05);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  line-height: 1.6;
}
.upload-note .note-icon {
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .ftp-header { display: none; }
  .ftp-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .ftp-name  { grid-column: 1 / -1; }
  .ftp-size  { display: none; }
  .ftp-date  { font-size: 11px; }
}

/* ============================================================
   MASTERS OF WAR — scoreboard.css
   Estilos da página Scoreboard (integração com o sistema original)
   ============================================================ */

/* ---------- PAGE CONTROLS ---------- */
.sb-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}
.sb-btn {
  background: var(--glass);
  border: 1px solid rgba(80,255,120,0.18);
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  transition: .2s;
}
.sb-btn:hover { background: rgba(0,255,100,0.12); color: #fff; }
.sb-btn.green { color: var(--accent); box-shadow: 0 0 12px rgba(22,255,74,0.2); }
.sb-btn.active {
  background: rgba(22,255,74,0.18);
  color: #fff;
  box-shadow: 0 0 14px rgba(22,255,74,0.35);
  border-color: rgba(22,255,74,0.45);
}

/* ---------- SERVER CARD ---------- */
.serverCard {
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: var(--glow);
  border: 1px solid var(--border);
}
.serverHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.serverBtns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ipRow {
  display: flex;
  align-items: center;
  min-width: 0;
}
.copyIpBtn {
  flex: 0 0 auto;
  width: 24px;
  height: 22px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid rgba(80,255,120,.25);
  border-radius: 5px;
  background: rgba(0,255,100,.06);
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
}
.copyIpBtn:hover { background: rgba(0,255,100,.15); color: #fff; }
.copyIpBtn.copied { color: #fff; border-color: rgba(80,255,120,.55); }

/* Copy IP button — always immediately after the full IP:PORT value. */
.ipRow .metaMono {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.ipRow .copyIpBtn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 22px !important;
  margin-left: 4px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ---------- STATUS DOTS ---------- */
.statusDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot-check   { background: #e6d31a; box-shadow: 0 0 6px #e6d31a; }
.dot-online  { background: #25d35a; box-shadow: 0 0 8px #25d35a; }
.dot-offline { background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; }

/* Pulso lento e independente do dot de status (online/offline/checando),
   separado do pulso de verificação (status/rank/stats), que roda a cada 5s. */
.dot-check, .dot-online, .dot-offline {
  animation: statusDotPulse 5s ease-in-out infinite;
}
@keyframes statusDotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* ---------- MP40 FIRING ICON (card header) ---------- */
.mp40Fx {
  position: absolute;
  top: 11px;
  right: 20px;
  width: 34px;
  height: 14px;
  pointer-events: none;
  z-index: 3;
  opacity: .85;
}
.mp40Fx svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mp40Barrel {
  transform-origin: 25% 50%;
  animation: mp40Recoil 2.8s ease-in-out infinite;
}
.mp40Flash {
  opacity: 0;
  transform-origin: center;
  animation: mp40Flash 2.8s ease-in-out infinite;
}
@keyframes mp40Recoil {
  0%, 82%, 100% { transform: translateX(0); }
  84%           { transform: translateX(-1.2px); }
  87%           { transform: translateX(.7px); }
  90%           { transform: translateX(0); }
}
@keyframes mp40Flash {
  0%, 82%, 100% { opacity: 0; transform: scale(.4); }
  83%           { opacity: 1; transform: scale(1.1); }
  84.5%         { opacity: .3; transform: scale(.7); }
  86%           { opacity: 1; transform: scale(1.25); }
  88%           { opacity: 0; transform: scale(.5); }
}

/* ---------- META INFO ---------- */
.serverMeta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.metaSmall   { font-size: 13px; color: var(--muted); }
.metaTime    { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: #88ffb0; margin-left: 10px; }
.statusText  { font-size: 14px; color: var(--accent2); margin-bottom: 4px; }
.adminNotice { font-size: 13px; color: #ffd700; margin-top: 6px; }

/* ---------- TABLE ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-md, 14px);
  margin-top: 6px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1, 0 2px 10px rgba(0,0,0,.35));
  max-height: 60vh;
  overflow-y: auto;
}
.table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.table-wrap::-webkit-scrollbar-track { background: rgba(0,255,100,.05); border-radius: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: rgba(80,230,130,.38); border-radius: 8px; }
.table-scroll-top { height:10px; overflow-x:auto; overflow-y:hidden; margin:0 0 5px; border-radius:8px; opacity:.72; scrollbar-width:auto; }
.table-scroll-top:not(.has-overflow) { visibility:hidden; height:0; margin:0; }
.table-scroll-top::-webkit-scrollbar { height:8px; }
.table-scroll-top::-webkit-scrollbar-track { background:rgba(0,255,100,.05); border-radius:8px; }
.table-scroll-top::-webkit-scrollbar-thumb { background:rgba(80,230,130,.38); border-radius:8px; }
.table-scroll-top-inner { height:1px; min-width:100%; }
table {
  width: 100%;
  min-width: 480px; /* prevents collapse below readable width */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  table-layout: fixed;
  background: var(--card);
}
th, td {
  padding: 10px 12px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
thead th {
  background-color: var(--card);
  background-image: linear-gradient(180deg, rgba(0,255,120,0.16), rgba(0,255,120,0.08));
  background-blend-mode: normal;
  font-weight: 700;
  color: var(--accent2);
  border-bottom: 1px solid rgba(0,255,120,0.18);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12.5px;
  letter-spacing: .8px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 5;
  isolation: isolate;
  will-change: transform;
  transform: translateZ(0);
}
tbody tr { transition: background .18s var(--ease, ease); }
tbody tr:nth-child(even) td { background: rgba(0,255,100,0.035); }
tbody tr:hover td { background: rgba(0,255,120,0.09); }
tbody tr:not(:last-child) td { border-bottom: 1px solid rgba(0,255,120,0.06); }
td.value { font-weight: 700; color: #d9ffe6; }
.table-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 24px; }

/* Rank badge for the leaderboard's first (position) column, with a medal
   accent on the top 3 places. Only matches the rank table — the live
   players table has a plain cn/name pair as its first two cells instead. */
td.value:first-child {
  font-family: 'Share Tech Mono', monospace;
  text-align: center;
  width: 40px;
}
tbody tr:nth-child(1) td.value:first-child,
tbody tr:nth-child(2) td.value:first-child,
tbody tr:nth-child(3) td.value:first-child {
  border-radius: 6px;
}
tbody tr:nth-child(1) td.value:first-child { color: #ffd54a; text-shadow: 0 0 10px rgba(255,213,74,0.5); }
tbody tr:nth-child(2) td.value:first-child { color: #d8dee8; text-shadow: 0 0 8px rgba(216,222,232,0.35); }
tbody tr:nth-child(3) td.value:first-child { color: #d3915a; text-shadow: 0 0 8px rgba(211,145,90,0.35); }
tbody tr:nth-child(1):has(td.value:first-child) td { background: linear-gradient(90deg, rgba(255,213,74,0.07), transparent 40%); }
tbody tr:nth-child(2):has(td.value:first-child) td { background: linear-gradient(90deg, rgba(216,222,232,0.05), transparent 40%); }
tbody tr:nth-child(3):has(td.value:first-child) td { background: linear-gradient(90deg, rgba(211,145,90,0.05), transparent 40%); }

/* ---------- ADMIN PANEL ---------- */
.admin-panel {
  position: static !important;
  width: 100%;
  max-height: none;
  overflow-y: visible;
  background: var(--card);
  border-radius: 12px;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(212,160,23,0.3);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6), 0 0 24px rgba(212,160,23,0.1);
}
.admin-panel-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}
.server-admin-card {
  background: rgba(0,255,100,0.03);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(0,255,120,0.1);
}
.admin-server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.admin-server-name {
  font-weight: 700;
  color: var(--accent2);
  font-size: 15px;
}
.badge-running { background: rgba(37,211,90,0.2); color: #25d35a; }
.badge-stopped { background: rgba(255,59,59,0.2); color: #ff3b3b; }
.badge-running, .badge-stopped {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.admin-config-input {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(0,255,100,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
}
.admin-config-input:focus { outline: none; border-color: var(--accent2); }
.admin-actions { display: flex; gap: 8px; }
.admin-action-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: .2s;
}
.admin-action-btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-save { background: rgba(230,211,26,0.15); color: #e6d31a; border: 1px solid #e6d31a; }
.btn-save:hover:not(:disabled) { background: rgba(230,211,26,0.28); }
.btn-start { background: rgba(37,211,90,0.15); color: #25d35a; border: 1px solid #25d35a; }
.btn-start:hover:not(:disabled) { background: rgba(37,211,90,0.28); }
.btn-stop { background: rgba(255,59,59,0.15); color: #ff3b3b; border: 1px solid #ff3b3b; }
.btn-stop:hover:not(:disabled) { background: rgba(255,59,59,0.28); }

/* ---------- TOOLTIP ---------- */
.__tt {
  position: absolute;
  z-index: 9999;
  max-width: min(45vw, 280px);
  background: #fff;
  color: #0b2616;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(3,10,6,0.25);
  font-size: 13px;
  line-height: 1.3;
  pointer-events: none;
  white-space: normal;
  word-break: break-word;
  display: none;
  border: 1px solid rgba(0,0,0,0.08);
}
.__tt.visible { display: block; }

/* ── Scoreboard toggle ─────────────────────────────────── */
.sb-bottom-toggle {
  display: flex;
  justify-content: center;
  padding: 18px 0 4px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .serverCard { padding: 14px; }

  .serverHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .serverBtns { flex-wrap: wrap; width: 100%; }
  .serverBtns .sb-btn { flex: 1 1 auto; text-align: center; font-size: 12px; padding: 7px 10px; }

  .serverMeta { flex-wrap: wrap; gap: 6px; }
  .metaTime   { margin-left: 0; }

  th, td { font-size: 12px; padding: 6px 7px; }

  /* Admin server panel */
  .admin-server-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .admin-actions { flex-wrap: wrap; }
  .admin-action-btn { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 480px) {
  .sb-controls { gap: 6px; }
  .sb-btn { font-size: 11px; padding: 6px 8px; }

  th, td { font-size: 11px; padding: 5px 6px; }

  .admin-panel-title { font-size: 16px; letter-spacing: 1px; }
  .admin-config-input { font-size: 12px; }
}


/* ============================================================
   SCOREBOARD AUTO-REFRESH PULSE
   O nome da função (status/rank/stats) pulsa a cada atualização.
   O intervalo é controlado por AUTO_REFRESH_SECONDS em scoreboard.js.
   ============================================================ */
.scoreboardPulse {
  display: inline-block;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: .08em;
  transform-origin: center;
  opacity: .9;
}
.scoreboardPulseRun {
  /* Pulso contínuo e constante a cada 1s, independente do tempo de
     resposta do fetch — não depende mais de ser reiniciado via JS a cada
     atualização de dados, então o ritmo nunca varia. */
  animation: scoreboardRefreshPulse 1s ease-in-out infinite;
}
@keyframes scoreboardRefreshPulse {
  0%   { transform: scale(1); opacity: .75; }
  35%  { transform: scale(1.16); opacity: 1; }
  70%  { transform: scale(1.04); opacity: .95; }
  100% { transform: scale(1); opacity: .9; }
}


/* Scoreboard: separate SERVER / IP / MAP / UPDATED fields */
.serverMeta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.metaItem {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}
.metaLabel {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--accent2);
  opacity: .8;
}
.metaMono { font-family: 'Share Tech Mono', monospace; }
.metaPort { opacity: .9; }
.metaUpdated { margin-left: auto; }
.metaTime {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: #88ffb0;
  white-space: nowrap;
}
@media (max-width: 900px) { .metaUpdated { margin-left: 0; } }

/* ---------- COMPACT SERVER HEADER ----------
   Mantém SERVER/IP/MAP/UPDATED alinhados e os nomes dentro do card. */
.serverHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-bottom: 8px;
}
.serverMeta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  flex-wrap: nowrap;
  overflow: hidden;
}
.metaItem {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}
.metaLabel {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .65px;
}
.metaSmall {
  font-size: 12px;
  line-height: 1.15;
  min-width: 0;
}
.metaServer {
  flex: 0 1 285px;
  min-width: 145px;
}
.metaServerName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.metaMap {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metaUpdated {
  flex: 0 0 auto;
  margin-left: auto;
}
.metaTime {
  margin-left: 0;
  font-size: 11px;
  white-space: nowrap;
}
.serverBtns {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.serverBtns .sb-btn {
  padding: 7px 12px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .serverHeader {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .serverMeta {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }
  .metaUpdated {
    margin-left: 0;
  }
  .serverBtns {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* ============================================================
   SCOREBOARD DASHBOARD — reference layout
   ============================================================ */
.serverCard {
  background: linear-gradient(180deg, rgba(2,25,12,.92), rgba(1,18,9,.96));
  border: 1px solid rgba(0,255,110,.22);
  border-radius: 13px;
  padding: 12px 14px 14px;
  margin: 12px 0;
  box-shadow: 0 0 24px rgba(0,255,100,.08), inset 0 0 22px rgba(0,255,100,.025);
  position: relative;
}
.serverHeader {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-width:0;
}
.serverIdentity {
  display:grid;
  grid-template-columns:auto minmax(220px,1.45fr) minmax(150px,.85fr) minmax(120px,.75fr) minmax(150px,.8fr);
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1 1 auto;
}
.metaBlock { min-width:0; display:flex; align-items:baseline; gap:6px; }
.metaLabel { color:#d8f6df; font-size:12px; font-weight:700; white-space:nowrap; letter-spacing:.2px; }
.metaValue { color:#73e99a; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.metaServerName { color:#83efaa; font-size:14px; }
.metaMono,.metaTime { font-family:'Share Tech Mono',monospace; }
.metaTime { color:#8bffb0; font-size:12px; white-space:nowrap; }
.metaUpdatedBlock { justify-content:flex-start; }
.serverBtns { display:flex; gap:7px; flex:0 0 auto; }
.serverBtns .sb-btn { padding:7px 13px; }
.closeBtn { display:none; }
.serverContent { margin-top:10px; }
.emptyPanel { color:#75a789; font-size:13px; padding:10px 4px 2px; }
.dataPanel { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:16px; align-items:start; }
.dataPanel[hidden] { display:none !important; }
.rankPhotoView[hidden] { display:none !important; }
.mapInfoView[hidden] { display:none !important; }
.table-wrap { margin:0; min-width:0; border-radius:10px; border:1px solid rgba(0,255,100,.15); overflow:auto; }
.table-wrap table { min-width:760px; background:rgba(0,20,9,.72); }
.table-wrap th,.table-wrap td { padding:7px 9px; }
.mapPanel { display:grid; grid-template-columns:160px 1fr; gap:14px; padding:10px; border:1px solid rgba(0,255,100,.13); border-radius:10px; background:rgba(0,30,12,.55); min-width:0; height:180px; max-height:180px; box-sizing:border-box; align-self:start; overflow:hidden; }
.mapPreview { height:158px; min-height:158px; border-radius:8px; border:1px solid rgba(0,255,100,.18); background:radial-gradient(circle at 35% 25%,rgba(80,140,90,.22),rgba(2,16,8,.96) 65%); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.mapPreviewIcon { color:#68d88b; font-family:'Share Tech Mono',monospace; font-size:15px; text-align:center; padding:12px; word-break:break-word; }
.mapInfo { display:flex; flex-direction:column; justify-content:center; min-width:0; gap:4px; }
.mapLabel { color:#52c97a; font-size:11px; font-weight:700; letter-spacing:.6px; margin-top:5px; }
.mapValue { color:#d9ffe3; font-family:'Share Tech Mono',monospace; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* The wrapper around the map thumbnail + map info text must not count as
   its own grid cell, or it gets squeezed into mapPanel's first (thumbnail)
   column and the map name/players/bots text gets clipped by mapPanel's
   fixed height + overflow:hidden. Dissolving it here (not just inside the
   phone-only media queries) lets the thumbnail and info text sit in their
   own grid columns at every screen size. */
.mapInfoView { display: contents; }
.rankPhotoView { grid-column: 1 / -1; }
.adminNotice { margin-top:8px; }

@media (max-width: 1100px) {
  .serverIdentity { grid-template-columns:auto minmax(190px,1.4fr) minmax(140px,.8fr); }
  .serverIdentity .metaBlock:nth-child(4), .serverIdentity .metaUpdatedBlock { display:none; }
  .dataPanel { grid-template-columns:1fr; }
  .mapPanel { grid-template-columns:130px 1fr; height:180px; max-height:180px; }
}
@media (max-width: 760px) {
  .serverHeader { align-items:flex-start; flex-direction:column; }
  .serverIdentity { width:100%; grid-template-columns:auto 1fr; gap:8px 10px; }
  .serverIdentity .metaBlock { min-width:0; }
  .serverIdentity .metaBlock:nth-child(3), .serverIdentity .metaBlock:nth-child(4), .serverIdentity .metaUpdatedBlock { display:flex; }
  .serverBtns { width:100%; overflow:auto; }
  .serverBtns .sb-btn { flex:0 0 auto; }
  .mapPanel { grid-template-columns:1fr; }
  .mapPreview { height:98px; min-height:98px; }
}


/* ---------- ADMIN PANEL ---------- */
.admin-panel {
  position: static;
  width: 100%;
  max-height: none;
  overflow-y: visible;
  background: var(--card);
  border-radius: 12px;
  padding: 0;
  border: 1px solid rgba(212,160,23,0.3);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6), 0 0 24px rgba(212,160,23,0.1);
  margin-top: 20px;
  margin-bottom: 20px;
}
.admin-panel.panel-collapsed .admin-panel-body {
  display: none;
}
.admin-panel-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(212,160,23,0.15);
  cursor: pointer;
  user-select: none;
}
.admin-panel-title:hover { background: rgba(212,160,23,0.04); }
.admin-panel-toggle {
  font-size: 13px;
  color: var(--gold);
  opacity: 0.7;
  background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  transition: .2s;
}
.admin-panel-toggle:hover { opacity: 1; background: rgba(212,160,23,0.2); }
.admin-panel-body {
  padding: 14px 16px 16px;
}
.server-admin-card {
  background: rgba(0,255,100,0.03);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(0,255,120,0.1);
}
.admin-server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.admin-server-name {
  font-weight: 700;
  color: var(--accent2);
  font-size: 15px;
}
.badge-running { background: rgba(37,211,90,0.2); color: #25d35a; }
.badge-stopped { background: rgba(255,59,59,0.2); color: #ff3b3b; }
.badge-running, .badge-stopped {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.admin-config-input {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(0,255,100,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
}
.admin-config-input:focus { outline: none; border-color: var(--accent2); }
.admin-actions { display: flex; gap: 8px; }
.admin-action-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: .2s;
}
.admin-action-btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-save { background: rgba(230,211,26,0.15); color: #e6d31a; border: 1px solid #e6d31a; }
.btn-save:hover:not(:disabled) { background: rgba(230,211,26,0.28); }
.btn-start { background: rgba(37,211,90,0.15); color: #25d35a; border: 1px solid #25d35a; }
.btn-start:hover:not(:disabled) { background: rgba(37,211,90,0.28); }
.btn-stop { background: rgba(255,59,59,0.15); color: #ff3b3b; border: 1px solid #ff3b3b; }
.btn-stop:hover:not(:disabled) { background: rgba(255,59,59,0.28); }

/* ============================================================
   MASTERS OF WAR — contact.css
   Estilos exclusivos da página de Contato
   ============================================================ */

/* ---------- GRID LAYOUT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ---------- FORM ---------- */
.form-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 18px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0,255,80,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(37,211,90,0.08);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); opacity: .7; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%2314b84a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-select option { background: #081a0c; color: var(--text); }
.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}
.form-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent3), var(--accent2));
  color: #040e07;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  margin-top: 4px;
}
.form-submit:hover {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 0 20px rgba(37,211,90,0.4);
}
.form-submit:active { transform: scale(0.99); }

/* ---------- SUCCESS MESSAGE ---------- */
.form-success {
  display: none;
  background: rgba(37,211,90,0.08);
  border: 1px solid rgba(37,211,90,0.3);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  margin-top: 14px;
}

/* ---------- CONTACT INFO PANEL ---------- */
.contact-info-list { margin-bottom: 20px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.ci-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.ci-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.ci-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}
.ci-value a {
  color: var(--accent);
  text-decoration: none;
}
.ci-value a:hover { text-decoration: underline; }

/* ---------- RECRUITMENT CARD ---------- */
.recruit-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}
.recruit-list {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.recruit-list span { color: var(--accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}


/* FTP note */
.ftp-add-note{display:none;}

/* Server status pills */
.srv-pill{display:inline-flex;align-items:center;gap:6px;font-family:'Share Tech Mono',monospace;font-size:12px;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.07);border-radius:6px;padding:4px 10px;cursor:pointer;transition:background .15s;}
.srv-pill:hover{background:rgba(37,211,90,.12);}
.srv-pill-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}

/* Pagination */
.pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:18px;}
.page-btn{background:var(--card);border:1px solid var(--border);color:var(--muted);padding:6px 12px;border-radius:6px;cursor:pointer;font-family:'Rajdhani',sans-serif;font-size:14px;font-weight:600;transition:all .2s;}
.page-btn:hover{border-color:rgba(37,211,90,.3);color:var(--accent);}
.page-btn.active{background:rgba(37,211,90,.12);border-color:var(--accent2);color:var(--accent);}
.page-btn:disabled{opacity:.3;cursor:not-allowed;}

/* Gallery grid/albums/tabs + lightbox chrome now live in css/gallery.css */

/* Font fallbacks if external fonts blocked */
body { font-family: 'Rajdhani', 'Segoe UI', Arial, sans-serif; }
.logo-title, .section-title, .card-label, .form-submit, .section-title,
.admin-panel-title, .gtab, .recruit-card-title, .form-card-title,
h1, h2, h3 { font-family: 'Bebas Neue', 'Impact', 'Arial Narrow', Arial, sans-serif; }
.mono, code, .ftp-date, .ftp-version, .server-clock, .metaSmall,
.metaTime, .info-value, .ftp-path { font-family: 'Share Tech Mono', 'Consolas', 'Courier New', monospace; }

/* ══════════════════════════════════════════════════════════════════════
   INBOX NAV BUTTON
   ══════════════════════════════════════════════════════════════════════ */
.nav-inbox-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,255,80,0.04);
  border: 1px solid rgba(37,211,90,0.25);
  color: #25d35a;
  border-radius: 4px;
  width: 36px;
  height: 34px;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(37,211,90,0.08);
  margin-left: 6px;
}
.nav-inbox-btn:hover {
  background: rgba(37,211,90,0.14);
  border-color: #25d35a;
  box-shadow: 0 0 16px rgba(37,211,90,0.25);
  color: #6fffa0;
}
.nav-inbox-btn svg { filter: drop-shadow(0 0 3px rgba(37,211,90,0.5)); }
.inbox-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #cc2200;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  border-radius: 10px;
  padding: 1px 4px;
  min-width: 16px;
  text-align: center;
  line-height: 14px;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(204,34,0,0.6);
  border: 1px solid rgba(255,80,50,0.5);
}

/* ══════════════════════════════════════════════════════════════════════
   FORUM ACTIVITY BELL — new topic/post alerts, visible to everyone
   ══════════════════════════════════════════════════════════════════════ */
.nav-forum-bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,255,80,0.04);
  border: 1px solid rgba(37,211,90,0.25);
  color: #25d35a;
  border-radius: 4px;
  width: 36px;
  height: 34px;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(37,211,90,0.08);
  margin-left: 6px;
}
.nav-forum-bell-btn:hover {
  background: rgba(37,211,90,0.14);
  border-color: #25d35a;
  box-shadow: 0 0 16px rgba(37,211,90,0.25);
  color: #6fffa0;
}
.nav-forum-bell-btn svg { filter: drop-shadow(0 0 3px rgba(37,211,90,0.5)); }
.forum-bell-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #cc2200;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  border-radius: 10px;
  padding: 1px 4px;
  min-width: 16px;
  text-align: center;
  line-height: 14px;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(204,34,0,0.6);
  border: 1px solid rgba(255,80,50,0.5);
}
.forum-bell-panel {
  position: absolute;
  top: 54px;
  right: 16px;
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: 420px;
  background: #0a1810;
  border: 1px solid rgba(37,211,90,0.22);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(37,211,90,0.08);
  z-index: 2100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.forum-bell-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1.5px;
  font-size: 14px;
  color: #eafff2;
  background: linear-gradient(160deg, rgba(37,211,90,0.12), rgba(37,211,90,0.02));
  border-bottom: 1px solid rgba(37,211,90,0.16);
}
.forum-bell-viewall {
  background: transparent;
  border: 1px solid rgba(37,211,90,0.3);
  color: #25d35a;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all .15s;
}
.forum-bell-viewall:hover { background: rgba(37,211,90,0.16); border-color: #25d35a; }
.forum-bell-list { overflow-y: auto; }
.forum-bell-empty {
  text-align: center;
  padding: 30px 16px;
  color: #7ab890;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
}
.forum-bell-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background .15s;
}
.forum-bell-item:last-child { border-bottom: none; }
.forum-bell-item:hover { background: rgba(37,211,90,0.07); }
.forum-bell-item-new { background: rgba(37,211,90,0.05); }
.forum-bell-icon {
  font-size: 14px;
  width: 28px; height: 28px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,211,90,0.08);
  border: 1px solid rgba(37,211,90,0.18);
  flex-shrink: 0;
  margin-top: 1px;
}
.forum-bell-main { min-width: 0; flex: 1; }
.forum-bell-title {
  font-size: 12.5px;
  color: #eafff2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.forum-bell-meta {
  font-size: 10.5px;
  color: #7ab890;
  font-family: 'Share Tech Mono', monospace;
  margin-top: 3px;
}
@media (max-width: 480px) {
  .forum-bell-panel { right: 8px; left: 8px; width: auto; }
}

/* ══════════════════════════════════════════════════════════════════════
   INBOX PANEL — dropdown top-right
   ══════════════════════════════════════════════════════════════════════ */
.inbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 58px 16px 16px;
}
.inbox-overlay.hidden { display: none; }
.inbox-modal {
  background: #061309;
  border: 1px solid rgba(37,211,90,0.25);
  border-radius: 6px;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,.85), 0 0 20px rgba(37,211,90,0.08);
  overflow: hidden;
}
.inbox-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 11px;
  border-bottom: 1px solid rgba(37,211,90,0.12);
  background: rgba(37,211,90,0.04);
  flex-shrink: 0;
}
.inbox-modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: .12em;
  color: #25d35a;
  text-shadow: 0 0 10px rgba(37,211,90,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.inbox-modal-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 16px;
  background: #25d35a;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(37,211,90,0.6);
}
.inbox-modal-close {
  background: none;
  border: 1px solid rgba(37,211,90,0.2);
  color: #7ab890;
  font-size: .85rem;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  transition: all .15s;
}
.inbox-modal-close:hover { background: rgba(204,34,0,0.15); border-color: #cc2200; color: #ff6b6b; }
.inbox-modal-body { overflow-y: auto; flex: 1; }
.inbox-modal-body::-webkit-scrollbar { width: 4px; }
.inbox-modal-body::-webkit-scrollbar-thumb { background: rgba(37,211,90,0.3); border-radius: 2px; }
.inbox-empty {
  text-align: center;
  color: #7ab890;
  padding: 50px 20px;
  font-size: .9rem;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: .05em;
}
.inbox-item {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(37,211,90,0.07);
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.inbox-item:hover { background: rgba(37,211,90,0.06); }
.inbox-item.inbox-unread { background: rgba(37,211,90,0.04); border-left: 2px solid #25d35a; }
.inbox-item.inbox-unread:hover { background: rgba(37,211,90,0.09); }
.inbox-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.inbox-item-from { font-size: .78rem; color: #7ab890; font-family: 'Share Tech Mono', monospace; letter-spacing: .03em; }
.inbox-item-from strong { color: #25d35a; }
.inbox-item-date { font-size: .72rem; color: rgba(122,184,144,0.6); font-family: 'Share Tech Mono', monospace; }
.inbox-item-subject {
  font-size: .9rem;
  color: #d0f0dc;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: .02em;
}
.inbox-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #25d35a;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(37,211,90,0.8);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; box-shadow:0 0 6px rgba(37,211,90,0.8); }
  50%      { opacity:.6; box-shadow:0 0 12px rgba(37,211,90,0.4); }
}

/* ══════════════════════════════════════════════════════════════════════
   CONTACT / INBOX MESSAGE DETAIL MODAL
   ══════════════════════════════════════════════════════════════════════ */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.adm-modal-box {
  background: #061309;
  border: 1px solid rgba(37,211,90,0.25);
  border-radius: 6px;
  width: 580px;
  max-width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0,0,0,.9), 0 0 24px rgba(37,211,90,0.08);
  overflow: hidden;
}
.adm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 11px;
  border-bottom: 1px solid rgba(37,211,90,0.12);
  background: rgba(37,211,90,0.04);
  flex-shrink: 0;
}
.adm-modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: .1em;
  color: #25d35a;
  text-shadow: 0 0 10px rgba(37,211,90,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.adm-modal-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 14px;
  background: #25d35a;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(37,211,90,0.6);
}
.adm-modal-close {
  background: none;
  border: 1px solid rgba(37,211,90,0.2);
  color: #7ab890;
  font-size: .85rem;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  transition: all .15s;
}
.adm-modal-close:hover { background: rgba(204,34,0,0.15); border-color: #cc2200; color: #ff6b6b; }
.adm-modal-meta {
  padding: 12px 18px 10px;
  border-bottom: 1px solid rgba(37,211,90,0.08);
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(0,0,0,.15);
  flex-shrink: 0;
}
.adm-modal-meta > div { font-size: .84rem; font-family: 'Share Tech Mono', monospace; color: #d0f0dc; }
.adm-modal-label { color: #7ab890; margin-right: 6px; letter-spacing: .04em; }
.adm-modal-body {
  padding: 16px 18px;
  flex: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: .9rem;
  line-height: 1.65;
  color: #d0f0dc;
  font-family: 'Rajdhani', sans-serif;
}
.adm-modal-body::-webkit-scrollbar { width: 4px; }
.adm-modal-body::-webkit-scrollbar-thumb { background: rgba(37,211,90,0.3); border-radius:2px; }
.adm-modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid rgba(37,211,90,0.1);
  background: rgba(0,0,0,.1);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   ADMIN SEND MESSAGE FORM
   ══════════════════════════════════════════════════════════════════════ */
.adm-msg-send-section {
  background: rgba(37,211,90,0.03);
  border: 1px solid rgba(37,211,90,0.12);
  border-radius: 5px;
  padding: 14px 16px;
  margin-bottom: 6px;
}
.adm-send-msg-form { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.adm-send-row { display: flex; align-items: center; gap: 8px; }
.adm-send-row-body { align-items: flex-start; }
.adm-send-label {
  min-width: 60px;
  font-size: .8rem;
  color: #7ab890;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: .04em;
  text-align: right;
}
.adm-send-select, .adm-send-input {
  flex: 1;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(37,211,90,0.2);
  color: #d0f0dc;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: .86rem;
  font-family: 'Rajdhani', sans-serif;
  transition: border-color .15s;
}
.adm-send-select:focus, .adm-send-input:focus { outline:none; border-color:rgba(37,211,90,0.5); box-shadow:0 0 6px rgba(37,211,90,0.1); }
.adm-send-textarea {
  flex: 1;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(37,211,90,0.2);
  color: #d0f0dc;
  border-radius: 4px;
  padding: 7px 9px;
  font-size: .86rem;
  font-family: 'Rajdhani', sans-serif;
  min-height: 90px;
  resize: vertical;
  transition: border-color .15s;
}
.adm-send-textarea:focus { outline:none; border-color:rgba(37,211,90,0.5); box-shadow:0 0 6px rgba(37,211,90,0.1); }
.adm-send-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(37,211,90,0.08);
}
.adm-send-actions .adm-msg { flex: 1; }

/* ============================================================
   MOBILE RESPONSIVE — header, hero, home (inline)
   ============================================================ */

/* --- Hamburger button --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  /* Header */
  .header-inner { padding: 0 12px; height: 52px; }
  .logo-title    { font-size: 15px; letter-spacing: 1px; }
  .logo-sub      { display: none; }
  .logo-wrap img { height: 32px; }
  .hamburger     { display: flex; }

  /* Hide desktop nav & auth on mobile strip */
  #mainNav       { display: none; }
  .nav-auth-group { display: none; }

  /* Mobile nav open state — vertical list */
  #mainNav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0; right: 0;
    background: rgba(4,14,7,0.98);
    border-bottom: 1px solid rgba(37,211,90,0.2);
    backdrop-filter: blur(16px);
    padding: 10px 14px 16px;
    gap: 3px;
    z-index: 999;
  }
  #mainNav.nav-open .nav-btn {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    font-size: 14px;
  }

  /* Auth buttons inside open mobile menu */
  .nav-auth-group.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0;
    background: rgba(4,14,7,0.98);
    padding: 8px 14px 14px;
    border-top: 1px solid rgba(37,211,90,0.12);
    gap: 5px;
    z-index: 998;
  }
  .nav-auth-group.nav-open .login-btn {
    width: 100%;
    text-align: center;
    padding: 9px 10px;
    font-size: 13px;
  }

  /* Hero */
  .hero { padding: 24px 16px 20px; }
  .hero-logo { max-width: 85%; }
  .hero-tagline { font-size: 11px; letter-spacing: 2px; margin-top: 10px; }

  /* Section */
  .section-wrap  { padding: 16px 12px 36px; }
  .section-title { font-size: 24px; }

  /* Home — server status bar */
  .server-status-bar { padding: 10px 12px; gap: 8px; margin-bottom: 18px; }
  .server-clock { margin-left: 0; width: 100%; font-size: 12px; }

  /* Home — clan info grid */
  .clan-info-grid   { grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
  .clan-stats-grid  { grid-template-columns: 1fr 1fr; gap: 10px; }
  .clan-stats-grid-6 { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .clan-about-grid  { grid-template-columns: 1fr; gap: 14px; }
  .info-value { font-size: 16px; }
  .clan-desc  { font-size: 13px; }

  /* Home — news */
  .news-item     { padding: 12px 14px; }
  .news-headline { font-size: 15px; }
  .news-body     { font-size: 13px; }

  /* Cards (quick links at bottom of home) */
  .cards-row { grid-template-columns: 1fr 1fr; }
  .card      { padding: 14px; }
  .card-icon { font-size: 28px; }
  .card-label { font-size: 18px; }

  /* Modal (login) */
  .modal-box { padding: 20px 16px; width: calc(100vw - 32px); max-width: 360px; }

  /* Inbox */
  .inbox-overlay { padding: 52px 8px 8px; justify-content: center; }
  .inbox-modal   { width: 100%; max-width: calc(100vw - 16px); }

  /* Admin message modal */
  .adm-modal-box  { width: 100%; max-width: calc(100vw - 32px); }
  .adm-modal-meta { flex-direction: column; gap: 6px; }
  .adm-modal-body { max-height: 45vh; }

  /* Inbox bell in nav */
  .nav-inbox-btn { margin-left: 0; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-tagline { font-size: 10px; letter-spacing: 1px; }

  /* Cards: single column on very small phones */
  .cards-row { grid-template-columns: 1fr; }

  /* Section title */
  .section-title { font-size: 20px; }

  /* Clan stats: still 2 cols but tighter */
  .info-value { font-size: 15px; }
}

/* Media viewer / lightbox chrome (modal, close/prev/next, caption,
   counter, YouTube card, floating-mode shell) and video transport
   control styling (play bar, seek, volume, spinner, error panel)
   all live together in css/gallery.css. */


/* ============================================================
   SCOREBOARD REFRESH PULSE — separado do pulso do Server Status
   O Server Status usa @keyframes pulse / pulseDot.
   O nome status/rank/stats usa somente esta animação.
   ============================================================ */
.scoreboardPulse {
  display: inline-block;
  transform-origin: center;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: .08em;
  opacity: .9;
}
.scoreboardPulseRun {
  animation: scoreboardRefreshPulse .55s ease-out 1;
}
@keyframes scoreboardRefreshPulse {
  0%   { transform: scale(1); opacity: .70; }
  35%  { transform: scale(1.18); opacity: 1; }
  65%  { transform: scale(1.05); opacity: .96; }
  100% { transform: scale(1); opacity: .90; }
}

/* Controls auto-hide logic (fixed, touch-safe) now lives in css/gallery.css
   — the old rules here relied on a `.controls-visible` class the JS never
   actually set (it toggled `.idle` instead), so on touch devices, once a
   video started playing, the control bar could never be shown again. */


/* ===== scoreboard-mobile-final ===== */
/* FINAL MOBILE SCOREBOARD FIX */
@media (max-width: 760px) {
  /* Keep the mobile card compact and match the reference layout. */
  .serverCard { padding: 10px; }
  .serverIdentity { grid-template-columns: 1fr 1fr; gap: 7px 10px; }
  .serverIdentity > .statusDot { display: none; }
  .serverIdentity .metaServerBlock { grid-column: 1 / -1; flex-direction: row; align-items: baseline; }
  .serverIdentity .metaUpdatedBlock { grid-column: 1 / -1; flex-direction: row; align-items: baseline; }
  .metaBlock { flex-direction: row; align-items: baseline; gap: 5px; }
  .metaLabel { font-size: 10px; }
  .metaValue, .metaTime { font-size: 11px; }
  .metaServerName { font-size: 12px; }

  /* Table and map image stay side-by-side instead of making the map huge. */
  .dataPanel { grid-template-columns: minmax(0,1fr) 170px; grid-template-rows: auto auto; gap: 9px; align-items: start; }
  .table-scroll-shell { grid-column: 1; grid-row: 1; min-width: 0; }
  .mapPanel { display: contents; }
  .mapInfoView { display: contents; }
  .mapPreview { grid-column: 2; grid-row: 1; width: 100%; height: 108px; min-height: 108px; border-radius: 8px; }
  .mapPreview img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mapInfo { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 3px 8px; min-width: 0; padding: 7px 2px 0; border-top: 1px solid rgba(0,255,100,.10); }
  .mapLabel { margin-top: 0; font-size: 9px; }
  .mapValue { font-size: 11px; }

  /* Rank photo uses the same fixed right-hand slot. */
  .rankPhotoView { grid-column: 2; grid-row: 1; width: 100%; height: 108px; min-height: 108px; }
  .rankPhotoTitle { display: none; }
  .rankPhotoFrame { height: 108px; }

  .serverBtns { grid-template-columns: repeat(4, minmax(0,1fr)); display: grid; width: 100%; gap: 5px; }
  .serverBtns .sb-btn { width: 100%; min-width: 0; padding: 7px 3px; font-size: 10px; }
  .serverBtns .closeBtn { grid-column: auto; }
}

@media (max-width: 430px) {
  .dataPanel { grid-template-columns: minmax(0,1fr) 145px; gap: 7px; }
  .mapPreview, .rankPhotoView, .rankPhotoFrame { height: 96px; min-height: 96px; }
  .table-wrap table { min-width: 700px; }
  th, td { font-size: 10px; padding: 6px 7px; }
}

@media (max-width: 360px) {
  .dataPanel { grid-template-columns: minmax(0,1fr) 125px; }
  .mapPreview, .rankPhotoView, .rankPhotoFrame { height: 88px; min-height: 88px; }
  .table-wrap table { min-width: 680px; }
  .serverBtns .sb-btn { font-size: 9.5px; }
}



/* ============================================================
      MOBILE COMPACT SERVER PANEL — FINAL
   Compact header + compact player panels. Nothing is clipped.
   All statistics remain visible on phones.
   ============================================================ */
@media (max-width: 760px) {
  #serversContainer { width:100%; max-width:100%; overflow:hidden; }
  .serverCard {
    width:100%; max-width:100%; box-sizing:border-box;
    padding:8px !important; margin:8px 0 !important;
    border-radius:9px;
    overflow:hidden;
  }
  .serverHeader { gap:6px !important; margin-bottom:6px; }
  .mp40Fx { top:7px !important; right:10px !important; width:26px !important; height:11px !important; }
  .serverIdentity {
    width:100%; box-sizing:border-box;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:4px 8px !important;
  }
  .serverIdentity .metaServerBlock,
  .serverIdentity .metaUpdatedBlock { grid-column:1 / -1; }
  .metaBlock { min-width:0; overflow:hidden; }
  .metaLabel { font-size:8px !important; line-height:1; }
  .metaValue,.metaTime { font-size:10px !important; line-height:1.15; min-width:0; }
  .metaServerName { font-size:11px !important; }
  .metaValue { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .serverBtns {
    width:100%; display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:4px !important; overflow:visible !important;
  }
  .serverBtns .sb-btn {
    width:100%; min-width:0; box-sizing:border-box;
    padding:6px 2px !important; font-size:9.5px !important;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }

  .dataPanel {
    display:block !important; width:100%; max-width:100%;
    box-sizing:border-box; overflow:hidden;
  }
  .table-scroll-shell { width:100%; max-width:100%; min-width:0; }

  /* Mobile table: the SAME real table as the PC version (headers + rows
     visible, nothing turned into stacked cards) — just scaled down. Any
     column that doesn't fit is reached with the same horizontal scroll
     used on desktop. */
  .table-scroll-top.has-overflow { height:7px !important; margin-bottom:3px !important; visibility:visible !important; }
  .table-scroll-top::-webkit-scrollbar { height:6px; }
  .table-wrap {
    width:100% !important; max-width:100% !important;
    overflow-x:auto !important; overflow-y:auto !important;
    max-height:52vh !important; border-radius:8px !important;
    margin:0 !important;
  }
  .table-wrap thead th:first-child { border-top-left-radius: 8px !important; }
  .table-wrap thead th:last-child { border-top-right-radius: 8px !important; }
  .table-wrap tbody tr:last-child td:first-child { border-bottom-left-radius: 8px !important; }
  .table-wrap tbody tr:last-child td:last-child { border-bottom-right-radius: 8px !important; }
  .table-wrap table {
    display:table !important; width:max-content !important;
    min-width:440px !important; max-width:none !important;
    table-layout:auto !important;
    background:rgba(0,20,9,.72) !important; box-sizing:border-box;
  }
  .table-wrap th, .table-wrap td {
    font-size:9.5px !important; padding:5px 6px !important;
    white-space:nowrap !important;
  }
  .table-wrap thead th { font-size:8.5px !important; letter-spacing:.3px !important; }

  /* Map panel: same idea as the PC panel (small photo + info list),
     just shrunk. Height is automatic (no fixed height + overflow:hidden
     trap), so a 4th row like BOTS is never clipped off. */
  .mapPanel {
    display:grid !important;
    grid-template-columns:64px minmax(0,1fr) !important;
    gap:8px !important; width:100% !important; max-width:100%;
    height:auto !important; min-height:0 !important; max-height:none !important;
    padding:6px !important; margin-top:6px !important;
    box-sizing:border-box; overflow:visible !important;
  }
  .mapPreview {
    grid-column:1 !important; grid-row:1 !important;
    width:64px !important; height:64px !important; min-height:64px !important;
    border-radius:6px !important;
  }
  .mapPreviewIcon { font-size:9px !important; padding:3px !important; }
  .mapInfo {
    grid-column:2 !important; grid-row:1 !important;
    display:flex !important; flex-direction:column !important;
    justify-content:center !important; gap:1px !important; min-width:0;
  }
  .mapLabel { font-size:7px !important; margin:3px 0 0 !important; }
  .mapLabel:first-child { margin-top:0 !important; }
  .mapValue { font-size:10px !important; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .rankPhotoView {
    grid-column:1 / -1 !important; grid-row:1 !important;
    height:64px !important; min-height:64px !important;
  }
  .rankPhotoFrame { height:64px !important; min-height:64px !important; }
}

@media (max-width: 430px) {
  .serverCard { padding:7px !important; }
  .serverBtns .sb-btn { font-size:9px !important; padding:6px 1px !important; }
  .table-wrap table { min-width:400px !important; }
  .table-wrap th, .table-wrap td { font-size:9px !important; padding:4px 5px !important; }
  .mapPanel { grid-template-columns:56px minmax(0,1fr) !important; }
  .mapPreview { width:56px !important; height:56px !important; min-height:56px !important; }
  .rankPhotoView,.rankPhotoFrame { height:56px !important; min-height:56px !important; }
}

/* ===== scoreboard-override-v2 ===== */
/* ============================================================
   SCOREBOARD OVERRIDE V2 — authoritative final rules
   ============================================================ */
.dataPanel {
  overflow: visible !important;
}
.mapPanel {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
.mapInfoView {
  display: contents !important;
}
.mapInfo {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, auto) !important;
  align-content: center !important;
  align-items: center !important;
  gap: 4px 9px !important;
  min-width: 0 !important;
  overflow: visible !important;
}
.mapLabel {
  margin: 0 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}
.mapValue {
  min-width: 0 !important;
  max-width: 100% !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.mapValue[title], .mapLabel[title], .table-wrap [title] {
  cursor: help !important;
}

/* Phone / narrow window: thumbnail and all four map facts stay together. */
@media (max-width: 760px) {
  .dataPanel {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
  }
  .mapPanel {
    display: grid !important;
    grid-template-columns: clamp(56px, 20vw, 82px) minmax(0, 1fr) !important;
    gap: 7px !important;
    width: 100% !important;
    margin-top: 7px !important;
    padding: 6px !important;
  }
  .mapPreview {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: clamp(56px, 20vw, 82px) !important;
    min-height: 0 !important;
  }
  .mapInfo {
    grid-column: 2 !important;
    grid-row: 1 !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    gap: 2px 6px !important;
    padding: 0 !important;
  }
  .mapLabel { font-size: clamp(7px, 2.2vw, 9px) !important; }
  .mapValue { font-size: clamp(9px, 2.7vw, 11px) !important; }
  .rankPhotoView {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    height: clamp(56px, 20vw, 82px) !important;
    min-height: 0 !important;
  }
  .rankPhotoFrame { height: 100% !important; min-height: 0 !important; }
}

/* Very narrow phones: keep labels readable and never let the panel clip. */
@media (max-width: 430px) {
  .mapPanel {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }
  .mapPreview { width: 58px !important; height: 58px !important; }
  .mapLabel { font-size: 7.5px !important; }
  .mapValue { font-size: 9.5px !important; }
}

/* Compact Rank headers: abbreviations only. Full meaning is in the tooltip. */
table[id^="table_"] thead th { cursor: help !important; }

/* ===== scoreboard-compact-header-override ===== */
/* ============================================================
   HEADER COMPACTO — pedido do usuário (2026-08-29)
   - Server / IP / Map / Updated empilhados, um embaixo do outro
   - Foto do mapa/rank + infos dentro do cabeçalho do card (pequena)
   - O bloco de identidade só aparece quando Round Stats/Status/Rank
     é clicado (fica oculto quando o card não está acionado)
   - Tabelas de rank/status/stats mais compactas (menos espaço)
   ============================================================ */
.serverHeader { display:flex; flex-direction:column; align-items:stretch; gap:0; }

.idBlock {
  display:flex;
  gap:9px;
  align-items:flex-start;
  margin-top:9px;
  padding-top:9px;
  border-top:1px solid rgba(0,255,100,.10);
}
.idBlock[hidden] { display:none !important; }

.idPhoto {
  flex:0 0 52px;
  width:52px;
  height:52px;
  position:relative;
  border-radius:6px;
  overflow:hidden;
  background:rgba(0,20,9,.7);
  border:1px solid rgba(0,255,100,.16);
}
.idPhoto .mapInfoView,
.idPhoto .rankPhotoView {
  position:absolute; inset:0;
  display:flex;
  width:100% !important;
  height:100% !important;
}
.idPhoto .mapPreview {
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  border:0 !important;
  border-radius:0 !important;
}
.idPhoto .mapPreview img { width:100%; height:100%; object-fit:cover; display:block; }
.idPhoto .mapPreviewIcon { font-size:8px !important; padding:2px !important; }
.idPhoto .rankPhotoFrame {
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  border:0 !important;
  border-radius:0 !important;
}
.idPhoto .rankPhotoFallback { font-size:9px !important; letter-spacing:0 !important; }
.idPhoto .rankPhotoTitle { display:none !important; }

.idMeta { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:1px; justify-content:center; }
.idRow { display:flex; align-items:baseline; gap:5px; min-width:0; line-height:1.25; }
.idRow .metaLabel {
  flex:0 0 auto;
  font-size:9.5px !important;
  letter-spacing:.3px !important;
  color:#52c97a;
  opacity:.9;
}
.idRow .metaValue,
.idRow .metaTime {
  font-size:11.5px !important;
  color:#fff !important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}
.idRow .idInline { margin-left:8px; }
.idRowTop .statusDot { margin-right:1px; }

/* A tabela ocupa a largura toda agora que o painel do mapa saiu de
   ao lado e foi para o cabeçalho */
.dataPanel { grid-template-columns:1fr !important; }

/* Tabelas: espaço confortável em cada célula (a tabela ainda não estica
   para preencher o card inteiro — fica do tamanho do conteúdo) */
th, td,
.table-wrap th, .table-wrap td { padding:11px 18px !important; }
thead th { letter-spacing:.3px !important; font-size:12.5px !important; color:#fff !important; }
.table-wrap table { width:auto !important; min-width:0 !important; }

/* Cantos arredondados também no final da tabela (última linha),
   não só no cabeçalho */
.table-wrap thead th:first-child { border-top-left-radius: 10px !important; }
.table-wrap thead th:last-child { border-top-right-radius: 10px !important; }
.table-wrap tbody tr:last-child td:first-child { border-bottom-left-radius: 10px !important; }
.table-wrap tbody tr:last-child td:last-child { border-bottom-right-radius: 10px !important; }

