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

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #060d1a;
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  margin: 14px 14px 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 10;
}
.logo { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 10px; letter-spacing: 1px; text-transform: uppercase; }
.logo-icon { width: 36px; height: 36px; }
.header-center { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #94a3b8; }
.status-online { display: flex; align-items: center; gap: 6px; background: rgba(34,197,94,0.12); color: #22c55e; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid rgba(34,197,94,0.3); box-shadow: 0 0 12px rgba(34,197,94,0.25); }
.status-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{ opacity:1; box-shadow:0 0 0 0 rgba(34,197,94,.5); } 50%{ opacity:.7; box-shadow:0 0 0 5px rgba(34,197,94,0); } }
#clock { font-size: 13px; color: #94a3b8; }
.header-right { display: flex; gap: 8px; }
.btn-header { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); padding: 7px 14px; border-radius: 10px; color: #cbd5e1; cursor: pointer; font-size: 12px; font-family: inherit; transition: all .2s; display: flex; align-items: center; gap: 6px; }
.btn-header:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-header.reload { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: rgba(59,130,246,0.4); color: #fff; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 14px; }
.card { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); background: linear-gradient(145deg, #0f1a2e, #0a1020); position: relative; overflow: hidden; transition: transform .25s; display: flex; align-items: center; gap: 16px; }
.card:hover { transform: translateY(-3px); }
.card-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.card-body { flex: 1; min-width: 0; }
.card-big { font-size: 26px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.card-label { font-size: 12px; color: #64748b; font-weight: 500; }
.card-sub { font-size: 11px; color: #475569; margin-top: 2px; }
.card.blue   { background: linear-gradient(145deg, #162044, #0f172a); }
.card.blue   .card-icon { background: rgba(59,130,246,0.15); color: #60a5fa; }
.card.blue   .card-big  { color: #93c5fd; }
.card.purple { background: linear-gradient(145deg, #1a1650, #0f172a); }
.card.purple .card-icon { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.card.purple .card-big  { color: #c4b5fd; }
.card.violet { background: linear-gradient(145deg, #1f1060, #0f172a); }
.card.violet .card-icon { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.card.violet .card-big  { color: #ddd6fe; }
.card.green  { background: linear-gradient(145deg, #062d1c, #0f172a); border-color: rgba(34,197,94,0.25); box-shadow: 0 0 24px rgba(34,197,94,0.2), inset 0 0 20px rgba(34,197,94,0.05); }
.card.green  .card-icon { background: rgba(34,197,94,0.15); color: #4ade80; }
.card.green  .card-big  { color: #4ade80; }
.card.green  .card-label{ color: #22c55e; }
.card.red    { background: linear-gradient(145deg, #2d0a0a, #0f172a); border-color: rgba(239,68,68,0.25); box-shadow: 0 0 24px rgba(239,68,68,0.15), inset 0 0 20px rgba(239,68,68,0.05); }
.card.red    .card-icon { background: rgba(239,68,68,0.15); color: #f87171; }
.card.red    .card-big  { color: #f87171; }

/* ONLINE MAP */
.online-section { margin: 14px; border-radius: 16px; background: linear-gradient(145deg, #0a1528, #06101e); border: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #e2e8f0; }
.live-badge { background: rgba(34,197,94,0.15); color: #22c55e; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; border: 1px solid rgba(34,197,94,0.3); }
.section-meta { font-size: 12px; color: #475569; }
.online-map { position: relative; height: 200px; overflow: hidden; background: linear-gradient(to bottom, rgba(10,25,50,0.4) 0%, rgba(6,15,30,0.8) 60%, rgba(4,10,25,1) 100%); border-top: 1px solid rgba(255,255,255,0.04); }
.online-map::before { content: ''; position: absolute; bottom: 20%; left: 10%; right: 10%; height: 60px; background: radial-gradient(ellipse, rgba(255,130,60,0.2) 0%, transparent 70%); filter: blur(30px); pointer-events: none; }
.avatar-bubbles { position: relative; width: 100%; height: 100%; }
.avatar-bubble { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; transition: transform .2s; }
.avatar-bubble:hover { transform: translateY(-4px) scale(1.05); z-index: 5; }
.bubble-img-wrap { position: relative; }
.bubble-img-wrap img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.15); }
.bubble-dot { position: absolute; bottom: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #060d1a; box-shadow: 0 0 6px rgba(34,197,94,0.7); }
.bubble-name { font-size: 11px; font-weight: 600; color: #e2e8f0; white-space: nowrap; }
.bubble-time { font-size: 10px; color: #22c55e; }
.map-hint { text-align: center; padding: 8px 20px 14px; font-size: 11px; color: #334155; }

/* BOTTOM GRID */
.bottom-grid { display: grid; grid-template-columns: 1fr 420px; gap: 14px; margin: 14px; }

/* SESSIONS */
.sessions-section { border-radius: 16px; background: linear-gradient(145deg, #0a1528, #06101e); border: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.sessions-scroll { max-height: 320px; overflow-y: auto; overflow-x: hidden; }
.sessions-scroll::-webkit-scrollbar { width: 5px; }
.sessions-scroll::-webkit-scrollbar-track { background: transparent; }
.sessions-scroll::-webkit-scrollbar-thumb { background: linear-gradient(#22c55e, #4f46e5); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
thead th { position: sticky; top: 0; background: rgba(6,13,26,0.95); backdrop-filter: blur(10px); z-index: 3; padding: 10px 14px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #475569; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: left; }
tbody td { padding: 10px 14px; font-size: 13px; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.row-entry { border-left: 2px solid #22c55e; }
tbody tr.row-exit  { border-left: 2px solid #ef4444; }
.avatar-cell { display: flex; align-items: center; gap: 10px; }
.avatar-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: .3px; }
.status-badge.entry { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.status-badge.entry::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.status-badge.exit  { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }
.status-badge.exit::after  { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
.time-green { color: #22c55e; font-weight: 600; font-variant-numeric: tabular-nums; }
.time-red   { color: #ef4444; font-weight: 600; font-variant-numeric: tabular-nums; }
.region-cell { display: flex; align-items: center; gap: 5px; color: #94a3b8; font-size: 12px; }
.btn-action { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 8px; color: #94a3b8; cursor: pointer; font-size: 11px; font-family: inherit; transition: all .2s; }
.btn-action:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn-sl { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: #60a5fa; }
.sessions-hint { text-align: center; padding: 10px 20px; font-size: 11px; color: #334155; border-top: 1px solid rgba(255,255,255,0.04); }

/* RIGHT PANEL */
.right-panel { display: flex; flex-direction: column; gap: 14px; }
.chart-section { border-radius: 16px; background: linear-gradient(145deg, #0a1528, #06101e); border: 1px solid rgba(255,255,255,0.06); padding: 16px 20px; flex: 1; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.peak-badge { background: rgba(139,92,246,0.15); color: #a78bfa; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; border: 1px solid rgba(139,92,246,0.25); }
.chart-canvas-wrap { position: relative; height: 120px; }
#onlineChart { width: 100% !important; height: 100% !important; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: #334155; }
.online-now-badge { position: absolute; top: 10px; right: 10px; background: rgba(34,197,94,0.15); color: #22c55e; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; border: 1px solid rgba(34,197,94,0.3); display: flex; align-items: center; gap: 5px; }
.online-now-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulse 1.5s infinite; }
.chart-sub { font-size: 11px; color: #334155; text-align: center; margin-top: 6px; }

/* BANNED */
.banned-section { border-radius: 16px; background: linear-gradient(145deg, #0a1528, #06101e); border: 1px solid rgba(239,68,68,0.12); overflow: hidden; }
.banned-title { color: #f87171; display: flex; align-items: center; gap: 6px; }
.banned-list { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.ban-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(239,68,68,0.04); border: 1px solid rgba(239,68,68,0.08); }
.ban-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(239,68,68,0.2); flex-shrink: 0; }
.ban-info { flex: 1; min-width: 0; }
.ban-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.ban-reason { font-size: 11px; color: #64748b; margin-top: 2px; }
.ban-meta { font-size: 10px; color: #475569; text-align: right; }
.ban-active { background: rgba(239,68,68,0.15); color: #f87171; padding: 2px 8px; border-radius: 8px; font-size: 10px; font-weight: 700; border: 1px solid rgba(239,68,68,0.25); white-space: nowrap; }
.banned-footer { padding: 10px 20px; font-size: 11px; color: #334155; border-top: 1px solid rgba(255,255,255,0.04); }

/* NOTIFICAÇÕES */
.notifications { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; width: 280px; }
.notif { padding: 12px 16px; border-radius: 12px; background: rgba(15,25,45,0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 10px; animation: slideIn .3s ease; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.notif.entry { border-left: 3px solid #22c55e; }
.notif.exit  { border-left: 3px solid #ef4444; }
.notif-icon { font-size: 16px; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 12px; font-weight: 600; color: #e2e8f0; }
.notif-time  { font-size: 10px; color: #475569; margin-top: 2px; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* SECTION ICON */
.section-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* ===== FIX HEADER SALINAS ===== */

.header {
  background: linear-gradient(135deg, #0b1220, #0a1a35) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 
    0 0 20px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(59,130,246,0.05) !important;
}

/* remover brilho laranja antigo */
.header::before,
.header::after {
  display: none !important;
}

/* status verde igual o segundo */
.status-online {
  background: rgba(34,197,94,0.12) !important;
  color: #22c55e !important;
  border: 1px solid rgba(34,197,94,0.3) !important;
  box-shadow: 0 0 10px rgba(34,197,94,0.2) !important;
}

/* botões header estilo clean */
.btn-header {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

.btn-header:hover {
  background: rgba(255,255,255,0.12) !important;
}

/* botão azul reload */
.btn-header.reload {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: rgba(59,130,246,0.4) !important;
}

/* texto */
#clock {
  color: #94a3b8 !important;
}

/* logo */
.logo {
  color: #e2e8f0 !important;
}


/* ===== FIX FUNDO MARROM GLOBAL ===== */
body {
  background: #060d1a !important;
}

/* ===== FIX BANNED CARD ===== */
.banned-section {
  background: linear-gradient(145deg, #0a1528, #06101e) !important;
  border: 1px solid rgba(239,68,68,0.12) !important;
  box-shadow: none !important;
}

/* remover qualquer glow estranho */
.banned-section::before,
.banned-section::after {
  display: none !important;
}

/* texto */
.banned-section p {
  color: #94a3b8 !important;
}

/* footer */
.banned-footer {
  color: #334155 !important;
}

/* título vermelho clean */
.banned-title {
  color: #f87171 !important;
}

