:root {
  --nightblue: #4aabd0;
  --nightblue-rgb: 74, 171, 208;
  --nightblue-hover: #5ec6ee;
  --nightgreen: #3acb8e;
  --nightgreen-rgb: 58, 203, 142;
  --nightred: #dc143c;
  --nightred-rgb: 220, 20, 60;
  --nightorange: #ffa500;
  --nightorange-rgb: 255, 165, 0;
  --nightyellow: #c5c376;
  --nightyellow-rgb: 197, 195, 118;
  
  --bg-darkest: #07090e;
  --bg-main: #0b0f17;
  --bg-card: #111622;
  --bg-card-hover: #161d2d;
  --bg-input: #0a0d14;
  
  --border-subtle: #1a2233;
  --border-bright: #27344d;
  
  --text-main: #f0f4f8;
  --text-muted: #8b9bb0;
  --text-dim: #546479;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   SEGÉDOSZTÁLYOK ÉS SZÍNEK
   ========================================================================== */
.text-blue { color: var(--nightblue) !important; }
.text-green { color: var(--nightgreen) !important; }
.text-red { color: var(--nightred) !important; }
.text-orange { color: var(--nightorange) !important; }
.text-yellow { color: var(--nightyellow) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-blue-subtle { background: rgba(var(--nightblue-rgb), 0.12); }
.bg-green-subtle { background: rgba(var(--nightgreen-rgb), 0.12); }
.bg-red-subtle { background: rgba(var(--nightred-rgb), 0.12); }
.bg-orange-subtle { background: rgba(var(--nightorange-rgb), 0.12); }

.border-blue { border-left: 4px solid var(--nightblue) !important; }
.border-green { border-left: 4px solid var(--nightgreen) !important; }
.border-red { border-left: 4px solid var(--nightred) !important; }
.border-orange { border-left: 4px solid var(--nightorange) !important; }

.d-none { display: none !important; }
.mt-4 { margin-top: 1.5rem !important; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.text-center { text-align: center; }

/* ==========================================================================
   BEJELENTKEZÉS
   ========================================================================== */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at center, #111827 0%, var(--bg-darkest) 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.login-card.glow-blue {
  border-color: rgba(var(--nightblue-rgb), 0.4);
  box-shadow: 0 0 35px rgba(var(--nightblue-rgb), 0.2);
}

.login-header {
  text-align: center;
  margin-bottom: 26px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-logo .brand-icon {
  color: var(--nightblue);
  filter: drop-shadow(0 0 8px rgba(var(--nightblue-rgb), 0.6));
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--nightblue);
  margin-top: 6px;
}

.brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.login-form .form-group {
  margin-bottom: 18px;
}

.login-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.login-form label i {
  margin-right: 6px;
  color: var(--nightblue);
}

.login-form input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  transition: all 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--nightblue);
  box-shadow: 0 0 0 3px rgba(var(--nightblue-rgb), 0.2);
  background: #0f131c;
}

.login-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.badge-mini {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   ALKALMAZÁS LAYOUT & FEJLÉC
   ========================================================================== */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo-small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
}

.brand-logo-small small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.live-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--nightgreen-rgb), 0.12);
  border: 1px solid rgba(var(--nightgreen-rgb), 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--nightgreen);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--nightgreen);
}

.pulse {
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(var(--nightgreen-rgb), 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(var(--nightgreen-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--nightgreen-rgb), 0); }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.nav-tab.active {
  background: rgba(var(--nightblue-rgb), 0.15);
  color: var(--nightblue);
  box-shadow: 0 0 10px rgba(var(--nightblue-rgb), 0.2);
}

.nav-wealth-btn {
  border: 1px solid rgba(var(--nightred-rgb), 0.4);
  color: #ff6b81;
}

.nav-wealth-btn.active {
  background: rgba(var(--nightred-rgb), 0.2);
  color: #fff;
  border-color: var(--nightred);
  box-shadow: 0 0 15px rgba(var(--nightred-rgb), 0.4);
}

.badge-pulse-red {
  background: var(--nightred);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(var(--nightred-rgb), 0.8);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px 5px 14px;
  border-radius: 30px;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-nick {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--nightblue-rgb), 0.2);
  color: var(--nightblue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.app-main {
  flex: 1;
  padding: 24px 28px;
  max-width: 1650px;
  margin: 0 auto;
  width: 100%;
}

.tab-content {
  display: none;
}

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

/* ==========================================================================
   🚨 GYANÚS VAGYONNÖVEKEDÉSI RIASZTÁS BANNER (6+ ADMINSZINT)
   ========================================================================== */
.wealth-alert-banner {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.15) 0%, rgba(17, 22, 34, 0.95) 100%);
  border: 2px solid var(--nightred);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 0 35px rgba(var(--nightred-rgb), 0.35);
  animation: pulseBorder 2.5s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

@keyframes pulseBorder {
  0% { box-shadow: 0 0 20px rgba(var(--nightred-rgb), 0.25); border-color: rgba(var(--nightred-rgb), 0.7); }
  50% { box-shadow: 0 0 40px rgba(var(--nightred-rgb), 0.55); border-color: rgba(var(--nightred-rgb), 1); }
  100% { box-shadow: 0 0 20px rgba(var(--nightred-rgb), 0.25); border-color: rgba(var(--nightred-rgb), 0.7); }
}

.alert-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(var(--nightred-rgb), 0.3);
  padding-bottom: 14px;
}

.alert-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.alert-icon-pulse {
  font-size: 32px;
  color: var(--nightred);
  animation: iconShake 3s infinite ease-in-out;
}

@keyframes iconShake {
  0%, 100% { transform: scale(1); }
  10%, 20% { transform: scale(1.15) rotate(-5deg); }
  15%, 25% { transform: scale(1.15) rotate(5deg); }
  30% { transform: scale(1); }
}

.alert-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(var(--nightred-rgb), 0.6);
}

.alert-subtitle {
  font-size: 13px;
  color: #fca5a5;
  margin-top: 4px;
}

.alert-threshold-badge {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(var(--nightred-rgb), 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fca5a5;
}

.alert-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.wealth-player-card {
  background: rgba(12, 16, 25, 0.85);
  border: 1px solid rgba(var(--nightred-rgb), 0.4);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.2s ease;
  position: relative;
}

.wealth-player-card:hover {
  transform: translateY(-2px);
  border-color: var(--nightred);
  box-shadow: 0 8px 24px rgba(var(--nightred-rgb), 0.3);
}

.player-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.player-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.player-card-ids {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.spike-growth-badge {
  background: rgba(var(--nightred-rgb), 0.2);
  color: #ff6b81;
  border: 1px solid rgba(var(--nightred-rgb), 0.6);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.wealth-diff-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 12px 0;
}

.wealth-stat-node {
  display: flex;
  flex-direction: column;
}

.wealth-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.wealth-stat-val {
  font-size: 14px;
  font-weight: 700;
}

.wealth-arrow {
  color: var(--nightred);
  font-size: 16px;
}

.player-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

/* ==========================================================================
   KPI STAT KÁRTYÁK
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.2s ease;
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ==========================================================================
   PANEL BOX ÉS TÁBLÁZATOK
   ========================================================================== */
.dashboard-split {
  display: flex;
  gap: 20px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.night-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.night-table th {
  background: #0d121c;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.night-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-main);
  vertical-align: middle;
}

.night-table-hover tbody tr:hover {
  background: rgba(var(--nightblue-rgb), 0.04);
}

.category-breakdown {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   ADMINSZINT SÁV & SZŰRŐK
   ========================================================================== */
.adminlevel-pills-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
}

.pills-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pills-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.level-pill {
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.level-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-bright);
}

.level-pill.active {
  background: rgba(var(--nightblue-rgb), 0.2);
  color: var(--nightblue);
  border-color: var(--nightblue);
  box-shadow: 0 0 10px rgba(var(--nightblue-rgb), 0.25);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.pill-dot.bg-blue { background: var(--nightblue); }
.pill-dot.bg-green { background: var(--nightgreen); }
.pill-dot.bg-orange { background: var(--nightorange); }
.pill-dot.bg-yellow { background: var(--nightyellow); }
.pill-dot.bg-red { background: var(--nightred); }

.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-row-bottom {
  margin-top: 14px;
  align-items: flex-end;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-group input, 
.filter-group select {
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  transition: border-color 0.2s ease;
}

.filter-group input:focus, 
.filter-group select:focus {
  outline: none;
  border-color: var(--nightblue);
}

.input-with-icon {
  position: relative;
  width: 100%;
}

.input-with-icon input {
  width: 100%;
  padding-right: 32px;
}

.clear-input-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-date-group {
  display: flex;
  gap: 12px;
}

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

.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.auto-refresh-toggle input {
  display: none;
}

.slider {
  position: relative;
  width: 34px;
  height: 18px;
  background-color: var(--border-bright);
  border-radius: 20px;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: .3s;
}

input:checked + .slider {
  background-color: var(--nightgreen);
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.toggle-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   BADGE-EK ÉS RANGOK
   ========================================================================== */
.rank-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rank-owner { background: rgba(var(--nightred-rgb), 0.2); color: #ff6b81; border: 1px solid rgba(var(--nightred-rgb), 0.5); }
.rank-dev { background: rgba(var(--nightblue-rgb), 0.2); color: #76d3f8; border: 1px solid rgba(var(--nightblue-rgb), 0.5); }
.rank-director { background: rgba(155, 89, 182, 0.2); color: #bb86fc; border: 1px solid rgba(155, 89, 182, 0.5); }
.rank-manager { background: rgba(52, 152, 219, 0.2); color: #6cb2eb; border: 1px solid rgba(52, 152, 219, 0.5); }
.rank-superadmin { background: rgba(var(--nightorange-rgb), 0.2); color: #ffbe4d; border: 1px solid rgba(var(--nightorange-rgb), 0.5); }
.rank-headadmin { background: rgba(var(--nightyellow-rgb), 0.2); color: #e4e292; border: 1px solid rgba(var(--nightyellow-rgb), 0.5); }
.rank-admin { background: rgba(var(--nightgreen-rgb), 0.2); color: #5cebb0; border: 1px solid rgba(var(--nightgreen-rgb), 0.5); }

.category-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.tag-economy { background: rgba(var(--nightgreen-rgb), 0.15); color: var(--nightgreen); }
.tag-admin, .tag-admin_high { background: rgba(var(--nightorange-rgb), 0.15); color: var(--nightorange); }
.tag-security { background: rgba(var(--nightred-rgb), 0.15); color: var(--nightred); }
.tag-traffic { background: rgba(var(--nightblue-rgb), 0.15); color: var(--nightblue); }
.tag-vehicle { background: rgba(100, 181, 246, 0.15); color: #64b5f6; }
.tag-item { background: rgba(206, 147, 216, 0.15); color: #ce93d8; }
.tag-general { background: rgba(150, 160, 180, 0.15); color: #a0aec0; }
.tag-illegal { background: rgba(231, 76, 60, 0.15); color: #ff6b6b; }
.tag-chat { background: rgba(52, 152, 219, 0.15); color: #5dade2; }

.level-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   GOMBOK
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.btn-primary {
  background: var(--nightblue);
  color: #fff;
  border-color: var(--nightblue);
}

.btn-primary:hover {
  background: var(--nightblue-hover);
  box-shadow: 0 0 12px rgba(var(--nightblue-rgb), 0.4);
}

.btn-danger {
  background: var(--nightred);
  color: #fff;
}

.btn-danger:hover {
  background: #bd1034;
  box-shadow: 0 0 12px rgba(var(--nightred-rgb), 0.4);
}

.btn-outline-blue {
  background: transparent;
  border-color: var(--nightblue);
  color: var(--nightblue);
}

.btn-outline-blue:hover {
  background: rgba(var(--nightblue-rgb), 0.15);
}

.btn-outline-green {
  background: transparent;
  border-color: var(--nightgreen);
  color: var(--nightgreen);
}

.btn-outline-green:hover {
  background: rgba(var(--nightgreen-rgb), 0.15);
}

.btn-outline-danger {
  background: transparent;
  border-color: rgba(var(--nightred-rgb), 0.4);
  color: #ff6b81;
}

.btn-outline-danger:hover {
  background: rgba(var(--nightred-rgb), 0.2);
  border-color: var(--nightred);
}

.btn-outline-secondary {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text-muted);
}

.btn-outline-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.btn-secondary {
  background: var(--border-bright);
  color: var(--text-main);
}

/* ==========================================================================
   LAPOZÓ & MODAL
   ========================================================================== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border-subtle);
}

.pagination-buttons {
  display: flex;
  gap: 8px;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.detail-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.detail-item {
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.detail-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.detail-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
}

.detail-players-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.player-col {
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.player-col-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--nightblue);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.details-bubble {
  background: var(--bg-darkest);
  border-left: 3px solid var(--nightblue);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.6;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 14px;
}

.json-code-box {
  background: #080a0f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: monospace;
  font-size: 12px;
  color: #a5d6a7;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

/* ==========================================================================
   VAGYON FIGYELŐ FEJLÉC
   ========================================================================== */
.wealth-header-panel {
  background: linear-gradient(135deg, rgba(58, 203, 142, 0.1) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(var(--nightgreen-rgb), 0.3);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wealth-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wealth-icon-big {
  font-size: 40px;
}

.wealth-main-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.wealth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 800px;
  margin-top: 4px;
}

.wealth-header-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   FEJLÉC GYORSKERESŐ MEZŐ
   ========================================================================== */
.header-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  margin-left: 20px;
  max-width: 400px;
  flex: 1;
}

.header-search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
  padding: 4px 8px;
}

.header-search-bar input::placeholder {
  color: var(--text-dim);
}

.header-search-bar:focus-within {
  border-color: var(--nightgreen);
  box-shadow: 0 0 10px rgba(var(--nightgreen-rgb), 0.25);
}

/* ==========================================================================
   RÉSZLETES JÁTÉKOS ADATLAP MODAL (PLAYER INSPECT)
   ========================================================================== */
.modal-card-lg {
  max-width: 1050px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-card-lg .modal-body {
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.inspect-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.inspect-stat-card {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.inspect-stat-card.border-green {
  border-color: rgba(var(--nightgreen-rgb), 0.4);
  background: linear-gradient(135deg, rgba(var(--nightgreen-rgb), 0.08) 0%, rgba(10, 14, 23, 0.7) 100%);
}

.inspect-stat-card.border-blue {
  border-color: rgba(var(--nightblue-rgb), 0.35);
}

.inspect-stat-card.border-orange {
  border-color: rgba(255, 165, 2, 0.4);
}

.inspect-stat-card .stat-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.inspect-stat-card .stat-value {
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 2px 0;
  color: #fff;
}

.inspect-stat-card .stat-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.inspect-tabs-bar {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.inspect-subtab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.inspect-subtab:hover {
  color: #fff;
  border-bottom-color: rgba(var(--nightgreen-rgb), 0.5);
}

.inspect-subtab.active {
  color: var(--nightgreen);
  border-bottom-color: var(--nightgreen);
  font-weight: 700;
}

.inspect-tab-content {
  display: none;
}

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

.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
}

/* ======================================================== */
/* 2FA (KÉTLÉPCSŐS AZONOSÍTÁS) STÍLUSOK                     */
/* ======================================================== */
.twofa-code-input {
  letter-spacing: 6px;
  font-size: 24px;
  text-align: center;
  font-weight: 700;
  font-family: monospace;
  background: var(--bg-darkest, #0d1117);
  color: #fff;
  border: 2px solid var(--nightblue);
  border-radius: 8px;
  padding: 12px;
  width: 220px;
  margin: 0 auto;
  display: block;
  outline: none;
  box-shadow: 0 0 15px rgba(var(--nightblue-rgb), 0.2);
}

.twofa-code-input:focus {
  border-color: var(--nightblue-hover);
  box-shadow: 0 0 20px rgba(var(--nightblue-rgb), 0.4);
}

.twofa-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
}

.twofa-qr-img {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  max-width: 190px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  display: block;
}

.secret-key-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--border-bright);
  padding: 8px 14px;
  border-radius: 6px;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--nightblue);
  user-select: all;
}

.instructions-card {
  background: rgba(var(--nightblue-rgb), 0.08);
  border-left: 3px solid var(--nightblue);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
}

.instructions-card ol {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.status-dot-mini {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.status-dot-mini.dot-online {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.8);
}

.status-dot-mini.dot-offline {
  background: #e74c3c;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.6);
}

/* Kategória jelvények: Illegal és Chat */
.badge-cat-illegal {
  background: rgba(231, 76, 60, 0.18);
  color: #ff6b6b;
  border: 1px solid rgba(231, 76, 60, 0.35);
}

.badge-cat-chat {
  background: rgba(52, 152, 219, 0.18);
  color: #5dade2;
  border: 1px solid rgba(52, 152, 219, 0.35);
}

