/* ==========================================================================
   GreenWood FKM Web Dashboard - Ultra Modern Dark Glassmorphic Design System
   ========================================================================== */

:root {
  /* Alap Színpaletta */
  --bg-main: #07090e;
  --bg-sidebar: rgba(11, 15, 25, 0.85);
  --bg-card: rgba(17, 24, 39, 0.65);
  --bg-card-hover: rgba(26, 36, 56, 0.75);
  --bg-input: rgba(15, 23, 42, 0.8);
  --bg-modal-backdrop: rgba(3, 5, 10, 0.75);

  /* Keretek & Elválasztók */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(16, 185, 129, 0.5);
  --border-card: rgba(255, 255, 255, 0.09);

  /* Kiemelő Színek */
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.2);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.2);
  --accent-rose: #f43f5e;
  --accent-rose-glow: rgba(244, 63, 94, 0.2);
  --accent-violet: #8b5cf6;
  --accent-violet-glow: rgba(139, 92, 246, 0.2);

  /* Szöveg Színek */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #0f172a;

  /* Tipográfia */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Lekerekítések & Árnyékok */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--accent-emerald-glow);

  /* Átmenetek */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Alapvető Reset & Dobozmodell */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Egyéni sötét görgetősáv (minden böngészőhöz és Windows témához) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 15, 26, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

/* App Elrendezés */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ==========================================================================
   Oldalsáv (Sidebar)
   ========================================================================== */
.sidebar {
  width: 270px;
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 20;
}

.sidebar-header {
  height: 80px;
  min-height: 80px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

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

.logo-gem {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-emerald-glow);
}

.brand-text h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.03) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent-emerald);
}

.nav-item.active svg {
  color: var(--accent-emerald);
}

.nav-item span {
  flex: 1;
}

.badge-pill {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-primary {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.badge-warn {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}

.badge-info {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

.sidebar-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border-subtle);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-dot.online {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.status-dot.online::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

.status-details {
  display: flex;
  flex-direction: column;
}

.status-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.status-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Fő Tartalom & Felső Sáv (Topbar)
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.topbar {
  height: 80px;
  min-height: 80px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 10;
  box-sizing: border-box;
}

.topbar-search-wrapper {
  position: relative;
  width: 440px;
  max-width: 100%;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  width: 100%;
  transition: var(--transition);
}

.topbar-search:focus-within {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px var(--accent-emerald-glow);
  background: rgba(255, 255, 255, 0.08);
}

.topbar-search input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.88rem;
  width: 100%;
  outline: none;
}

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

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.search-clear-btn:hover {
  color: #fff;
}

.global-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 520px;
  max-width: 90vw;
  max-height: 480px;
  overflow-y: auto;
  background: rgba(13, 17, 28, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  z-index: 1000;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-search-dropdown.hidden {
  display: none;
}

.gs-category-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 700;
  padding: 8px 10px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
}

.gs-item:hover, .gs-item.selected {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.gs-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gs-item-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.gs-item-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gs-item-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-item-sub {
  font-size: 0.76rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-item-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  flex-shrink: 0;
}

.gs-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.gs-footer {
  padding: 8px 10px 4px;
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-warning {
  background: linear-gradient(135deg, var(--accent-amber) 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-amber-glow);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-rose) 0%, #e11d48 100%);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--accent-emerald);
  cursor: pointer;
  font-weight: 600;
}

.btn-ghost:hover {
  text-decoration: underline;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

.user-role {
  font-size: 0.7rem;
  color: var(--accent-emerald);
}

/* ==========================================================================
   Görgethető Tartalom & Lapok (Tabs)
   ========================================================================== */
.content-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 32px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

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

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

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.server-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.84rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Statisztikai Kártyák (Stats Grid)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.icon-violet { background: rgba(139, 92, 246, 0.15); color: var(--accent-violet); }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  font-family: var(--font-family);
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.text-success { color: var(--accent-emerald); }
.text-danger { color: var(--accent-rose); }
.text-warning { color: var(--accent-amber); }
.font-semibold { font-weight: 600; }

/* Dashboard Kétoszlopos Panel */
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

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

.panel {
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-card);
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
  flex-wrap: wrap;
}

.panel-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin: 0;
}

.tag-status {
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.quick-faction-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
}

.quick-faction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
  gap: 14px;
  cursor: pointer;
}

.quick-faction-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(3px);
}

.qf-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.qf-name-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.qf-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.qf-subname {
  font-size: 0.74rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.qf-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.badge-status-clean {
  background: rgba(16, 185, 129, 0.12) !important;
  color: var(--accent-emerald) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  font-weight: 600;
}

.qf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.03em;
  line-height: 1.2;
  box-sizing: border-box;
  flex-shrink: 0;
}

.badge-legal {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-hibrid,
.qf-badge.badge-hibrid {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(56, 189, 248, 0.18)) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.12);
}

.badge-illegal {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* ==========================================================================
   Legutóbbi Események és Warnok (Nagyobb, Tágasabb és Prémium Kártyák)
   ========================================================================== */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
}

.activity-item {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--accent-emerald);
  transition: var(--transition);
  min-width: 0;
  box-sizing: border-box;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.activity-item.act-warn {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.04);
}

.activity-item.act-warn:hover {
  background: rgba(245, 158, 11, 0.08);
}

.activity-item.act-role-up {
  border-left-color: #10b981;
}

.activity-item.act-role-down {
  border-left-color: #f43f5e;
  background: rgba(244, 63, 94, 0.03);
}

.activity-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.activity-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.activity-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-desc {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.42;
  word-break: break-word;
}

.activity-extra {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-time {
  font-size: 0.76rem;
  color: var(--text-dim);
  white-space: nowrap;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ==========================================================================
   Frakciók Szekció (Factions Grid & Table)
   ========================================================================== */
.filter-group {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active {
  background: var(--accent-emerald);
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-emerald-glow);
}

.search-and-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  flex: 1;
  max-width: 480px;
}

.input-with-icon input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.88rem;
  width: 100%;
  outline: none;
}

.view-switch {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
}

.view-btn {
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.factions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.faction-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.faction-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.7);
}

.fc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.fc-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.fc-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.fc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.fc-row .label {
  color: var(--text-muted);
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
}

.fc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Hierarchia Lap (Hierarchy)
   ========================================================================== */
.hierarchy-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.hierarchy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
}

.hc-leader-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.hc-foleader-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--accent-emerald);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================================================
   Táblázatok (Data Tables)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Warn Szűrők */
.warn-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

/* Státusz Badge-ek */
.badge-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-status.active {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-status.expired {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-status.permanent {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Konfigurációs Szekció (Config)
   ========================================================================== */
.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}

.config-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 16px;
}

.config-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.config-meta strong {
  font-size: 0.92rem;
}

.config-meta span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.config-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--accent-emerald);
  color: #fff;
  border-color: var(--accent-emerald);
}

/* ==========================================================================
   Modális Ablakok (Modals)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-modal-backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 1;
  transition: var(--transition);
}

.modal-backdrop.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  padding: 26px;
  border: 1px solid var(--border-card);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  background: linear-gradient(155deg, rgba(17, 24, 39, 0.98), rgba(11, 15, 26, 0.98));
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  transform: rotate(90deg);
}

.modal-form-flex {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-body-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  margin-right: -4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-body-scroll::-webkit-scrollbar {
  width: 6px;
}

.modal-body-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.modal-body-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

.modal-body-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.label-with-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.label-subtag {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.flex-1 { flex: 1; }

label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

input, select, textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px var(--accent-emerald-glow);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

select option {
  background: #0f172a;
  color: #fff;
}

.form-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.modal-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#custom-save-btn {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  transition: all 0.2s ease;
}

#custom-save-btn:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   Toast Értesítések (Toasts)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: toastSlide 0.3s ease-out;
  color: #fff;
  font-size: 0.88rem;
}

.toast.success { border-left: 4px solid var(--accent-emerald); }
.toast.error { border-left: 4px solid var(--accent-rose); }
.toast.info { border-left: 4px solid var(--accent-cyan); }

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Discord OAuth2 Login Gate & Felhasználói Profil Stílusok
   ========================================================================== */
.login-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 14, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.login-gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.15);
  position: relative;
  overflow: hidden;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-rose);
  box-shadow: 0 0 6px var(--accent-rose);
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-rose);
  transform: translate(-50%, -50%);
  animation: pulse-dot-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes pulse-dot-ping {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  75%, 100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

.login-logo-gem {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 25px var(--accent-emerald-glow);
}

.login-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.login-desc-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.login-perm-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-sm);
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

.login-perm-badge strong {
  color: #fff;
}

.btn-discord {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
}

.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.6);
  background: linear-gradient(135deg, #6774f7 0%, #515ed6 100%);
}

.localhost-dev-section {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dev-divider::before,
.dev-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.dev-divider span {
  padding: 0 10px;
}

.btn-dev-login {
  width: 100%;
  padding: 12px 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  font-family: var(--font-family);
}

.btn-dev-login:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  color: #fff;
}

.dev-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.dev-hint code {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  display: inline-block;
  margin-top: 4px;
  word-break: break-all;
  user-select: all;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.login-error-box {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.error-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.error-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.login-loading-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--accent-emerald);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-top-color: var(--accent-emerald);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-footer {
  margin-top: 24px;
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* User pill stílus kiegészítések */
.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-emerald);
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 4px;
}

.btn-logout:hover {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.1);
}

/* Segédosztályok */
.hidden { display: none !important; }

/* ==========================================================================
   Élő Discord Bot Telemetria Widget
   ========================================================================== */
.bot-telemetry-card {
  margin-bottom: 24px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.bot-telemetry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan), var(--accent-violet));
}

.bot-telemetry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bot-status-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bot-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
}

.bot-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-emerald);
}

.bot-avatar-icon {
  width: 100%;
  height: 100%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.bot-status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

.bot-status-indicator.online {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.bot-status-indicator.offline {
  background-color: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
}

.bot-meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bot-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.bot-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.bot-badge.badge-online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bot-badge.badge-offline {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.bot-server-info {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bot-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bot-stat-pill {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  gap: 2px;
}

.bot-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.bot-stat-val {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Faction Card & Table Members */
.fc-members-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.fc-members-pill strong {
  color: #fff;
}

/* Modal Large */
.modal-content.modal-lg {
  max-width: 660px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 28px 20px;
}

.fd-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.fd-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.fd-members-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 480px;
  padding-right: 4px;
}

.fd-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
  gap: 12px;
}

.fd-member-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.fd-avatar-col {
  flex-shrink: 0;
}

.fd-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.fd-avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fd-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.fd-names {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fd-nick {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 600;
}

.fd-username {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.fd-id-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fd-joined-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.fd-joined-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.fd-joined-val {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.fd-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Maffia & Banda címkék */
.text-purple {
  color: #c084fc !important;
}

.qf-badge.badge-maffia,
.badge-maffia {
  background: rgba(168, 85, 247, 0.18) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
}

.qf-badge.badge-banda,
.badge-banda {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

/* ==========================================================================
   Felhasználói Profil Elem (Avatar + Név + Handle + ID) Táblázatokhoz
   ========================================================================== */
.user-profile-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.user-cell-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.user-cell-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  color: #05080e;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.user-cell-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-cell-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.user-cell-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.user-cell-handle {
  color: var(--text-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-cell-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  color: var(--text-dim);
  cursor: copy;
  transition: all var(--transition-fast);
}

.user-cell-id:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ==========================================================================
   Frakció Szerepkör Badge-ek
   ========================================================================== */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.role-badge.foleader {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.role-badge.leader {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.role-badge.al_leader {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.role-badge.member {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* ==========================================================================
   Frakció Infó Tab Stílusok
   ========================================================================== */
.fi-selector-card {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: rgba(13, 18, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fi-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fi-selector-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.fi-selector-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fi-select-dropdown-wrap {
  position: relative;
}

.fi-faction-select {
  background: rgba(20, 28, 48, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  min-width: 220px;
}

.fi-faction-select:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.fi-faction-select optgroup {
  background: #0d121f;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.76rem;
}

.fi-faction-select option {
  background: #141b2d;
  color: #fff;
  font-weight: 500;
  padding: 6px 10px;
}

.fi-category-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fi-cat-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.fi-cat-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.fi-cat-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-emerald);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.fi-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fi-pill-btn {
  background: rgba(20, 28, 48, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.fi-pill-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.fi-pill-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(6, 182, 212, 0.25) 100%);
  color: #fff;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.fi-pill-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.fi-pill-count {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-dim);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 500;
  margin-left: 2px;
}

.fi-pill-btn.active .fi-pill-count {
  background: rgba(16, 185, 129, 0.3);
  color: #fff;
  font-weight: 700;
}

.fi-hero-container {
  margin-bottom: 24px;
}

.fi-hero-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.fi-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.fi-hero-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fi-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.fi-hero-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.fi-hero-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.fi-hero-stat-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fi-hero-stat-card span {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.fi-hero-stat-card strong {
  font-size: 1.3rem;
  color: #fff;
}

.fi-roster-box {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.fi-roster-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.fi-roster-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fi-roster-title-group h3 {
  margin: 0;
  font-size: 1.15rem;
}

.fi-roster-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Discord Live Logs Feed
   ========================================================================== */
.discord-logs-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.discord-log-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
}

.discord-log-card:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(4px);
}

.discord-log-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.discord-log-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-log-text {
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.4;
  word-break: break-word;
}

.discord-log-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Hierarchia kártya kibővített vezetőség csoportok */
.hc-role-group {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hc-role-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.hc-users-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hc-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #fff;
  transition: all 0.2s ease;
}

.hc-user-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.hc-user-chip img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.hc-chip-remove {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  margin-left: 4px;
  padding: 0;
  transition: all 0.15s ease;
}

.hc-chip-remove:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: scale(1.2);
}

/* ==========================================================================
   Frakció Egyedi Adatok (Discord Meghívó, HQ, Megjegyzések & Lightbox)
   ========================================================================== */
.fi-custom-details {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .fi-custom-details {
    grid-template-columns: 1fr;
  }
}

.fi-custom-main-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fi-custom-subrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.fi-custom-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fi-custom-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.fi-custom-empty {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 6px 0;
}

/* Discord Meghívó gomb */
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
}

.btn-discord:hover {
  background: linear-gradient(135deg, #6775f5, #535fc9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
  color: #ffffff !important;
}

.btn-discord svg {
  flex-shrink: 0;
}

/* HQ Helyszín Badge */
.fi-hq-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: #e0f2fe;
  font-size: 0.88rem;
  font-weight: 500;
  width: fit-content;
}

.fi-hq-pin {
  font-size: 1rem;
}

.fi-hq-text {
  word-break: break-word;
}

/* Frakció Megjegyzések Kártya */
.fi-note-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fi-note-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fi-note-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.fi-note-empty {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
}

/* HQ Kép Kártya (Oldalsáv) */
.fi-hq-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: fit-content;
}

.fi-hq-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}

.fi-hq-image-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-hq-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.fi-hq-image-wrap:hover .fi-hq-thumb {
  transform: scale(1.05);
}

.fi-hq-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
}

.fi-hq-image-wrap:hover .fi-hq-zoom-overlay {
  opacity: 1;
}

.fi-hq-empty-card {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fi-hq-empty-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.06);
}

.fi-hq-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
}

.fi-hq-placeholder strong {
  font-size: 0.88rem;
  color: #e2e8f0;
}

.fi-hq-placeholder small {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.fi-hq-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.82rem;
  color: var(--accent-rose);
  padding: 10px;
  text-align: center;
}

/* Modal képfeltöltő és előnézet */
.hq-image-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hq-image-input-wrap input {
  flex: 1;
}

.hq-upload-btn-wrap {
  flex-shrink: 0;
}

.hq-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hq-upload-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.hq-preview-container {
  position: relative;
  margin-top: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.hq-preview-container:has(.hq-preview-img:not(.hidden)) {
  min-height: 110px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  padding: 10px;
}

.hq-preview-img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hq-preview-img:hover {
  transform: scale(1.02);
}

.hq-preview-placeholder {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}

.hq-remove-img-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(239, 68, 68, 0.88);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fff;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hq-remove-img-btn:hover {
  background: #ef4444;
  transform: scale(1.04);
}

/* Lightbox Fullscreen Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.25s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: -10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.7);
  transform: rotate(90deg);
}

.lightbox-img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  margin-top: 12px;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Frakció kártyák mini chip badge-ek */
.faction-mini-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.fc-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.fc-chip-badge:hover {
  opacity: 0.85;
}

.fc-chip-dc {
  background: rgba(88, 101, 242, 0.2);
  color: #a5b4fc !important;
  border: 1px solid rgba(88, 101, 242, 0.4);
}

.fc-chip-hq {
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.fc-chip-note {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Tagok Lap (Members Tab) - Státusz Címkék & Konfliktus Kiemelés
   ========================================================================== */
.member-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.member-status-chip.status-conflict {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ff6b6b;
  animation: pulseConflict 2.5s infinite;
}

.member-status-chip.status-hybrid {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #4ade80;
}

.member-status-chip.status-multirank {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.member-status-chip.status-nodb {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.member-status-chip.status-nodc {
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(100, 116, 139, 0.4);
  color: #94a3b8;
}

.member-status-chip.status-ok {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.row-conflict-alert {
  background: rgba(239, 68, 68, 0.05) !important;
}

.badge-danger {
  background: var(--accent-crimson) !important;
  color: #fff !important;
}

@keyframes pulseConflict {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
  50% {
    box-shadow: 0 0 8px 1px rgba(239, 68, 68, 0.4);
  }
}

/* ==========================================================================
   Frakció Jump (FKJ) Hivatalos Szabályzat & Ledolgozás Panel
   ========================================================================== */
.fkj-rules-panel {
  margin-bottom: 24px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: linear-gradient(160deg, rgba(20, 27, 45, 0.95), rgba(12, 17, 32, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(245, 158, 11, 0.05);
  padding: 22px;
}

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

@media (max-width: 1200px) {
  .fkj-rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .fkj-rules-grid {
    grid-template-columns: 1fr;
  }
}

.fkj-rule-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.fkj-rule-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.fkj-rule-0 { border-top: 3px solid var(--accent-emerald); }
.fkj-rule-3 { border-top: 3px solid var(--accent-amber); }
.fkj-rule-5 { border-top: 3px solid #f97316; }
.fkj-rule-7 { border-top: 3px solid var(--accent-crimson); }

.fkj-rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fkj-tier-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.fkj-rule-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fkj-rule-list li {
  font-size: 0.81rem;
  color: #cbd5e1;
  line-height: 1.4;
  position: relative;
  padding-left: 14px;
}

.fkj-rule-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.fkj-workoff-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #fbbf24;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.35;
}

.fkj-workoff-box.workoff-clean {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
  color: #6ee7b7;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.fkj-extra-bar {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.fkj-extra-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}



