/* ==========================================================================
   Meetty Game Server Admin OS - Cyber Glassmorphism Design System
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #0f1422;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 56, 0.85);
  --bg-glass: rgba(15, 20, 34, 0.65);
  --bg-input: rgba(10, 14, 24, 0.8);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 242, 254, 0.5);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.4);
  --primary-dark: #0099cc;
  --secondary: #9d4edd;
  --secondary-glow: rgba(157, 78, 221, 0.4);
  --accent: #ff007f;
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.4);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.4);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.4);
  --info: #38bdf8;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 25px var(--primary-glow);
  
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(157, 78, 221, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, #07090f 0%, #0a0d14 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 13, 20, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
p {
  line-height: 1.6;
}
.text-cyan { color: var(--primary); }
.text-purple { color: var(--secondary); }
.text-green { color: var(--success); }
.text-red { color: var(--danger); }
.text-yellow { color: var(--warning); }
.text-muted { color: var(--text-muted); }

/* Common Glass Card */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}
.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Glow Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.badge-online {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
.badge-stopped {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.badge-updating {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.badge-pterodactyl {
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary);
  border-color: rgba(0, 242, 254, 0.25);
}
.badge-admin {
  background: rgba(157, 78, 221, 0.2);
  color: #c084fc;
  border-color: rgba(157, 78, 221, 0.35);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  text-decoration: none;
  user-select: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #03131c;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
  filter: brightness(1.1);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--success-glow);
}
.btn-success:hover {
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
}
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--danger-glow);
}
.btn-danger:hover {
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6);
}
.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1a1000;
  box-shadow: 0 4px 14px var(--warning-glow);
}
.btn-warning:hover {
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.6);
}
.btn-purple {
  background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--secondary-glow);
}
.btn-purple:hover {
  box-shadow: 0 6px 18px rgba(157, 78, 221, 0.6);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 14px 26px;
  font-size: 1.05rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-input, .form-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}
.form-input[readonly] {
  background: rgba(15, 20, 34, 0.4);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   VIEW 1: LOGIN PAGE
   ========================================================================== */
#login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  background: radial-gradient(circle at center, #11182c 0%, #060911 100%);
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 38px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.1);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.login-logo-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  margin-bottom: 16px;
  animation: float-logo 4s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.login-title {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.security-badge-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.login-error-msg {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 16px;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.login-hint-box {
  margin-top: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  font-size: 0.775rem;
  color: var(--text-muted);
  text-align: left;
}
.login-hint-box code {
  color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   VIEW 2: MAIN DASHBOARD & NAVIGATION
   ========================================================================== */
#main-app {
  display: none;
  min-height: 100vh;
  flex-direction: column;
}

/* Top Navigation Bar */
.top-navbar {
  height: 72px;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}
.nav-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  object-fit: cover;
}
.nav-brand-text h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.nav-brand-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
}
.metric-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
}
.metric-mini-bar {
  width: 48px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.metric-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.nav-user-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  color: #e9d5ff;
}

/* App Main Container */
.app-content {
  flex: 1;
  padding: 28px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb-bar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumb-bar a:hover {
  color: var(--primary);
}
.breadcrumb-separator {
  color: var(--text-dim);
}
.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   VIEW 3: GAMES HUB (3 DISTINCT GAME CARDS)
   ========================================================================== */
.games-hub-header {
  margin-bottom: 32px;
  text-align: center;
}
.games-hub-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 20%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.games-hub-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.2);
}

.game-card-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.game-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.game-card:hover .game-card-banner img {
  transform: scale(1.06);
}
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.1) 0%, rgba(10, 13, 20, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px 22px;
}
.game-card-badge-top {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}
.game-card-title-box h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 2px;
}
.game-card-title-box span {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

.game-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.game-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.spec-label {
  font-size: 0.725rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}
.spec-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
}

.game-card-actions {
  display: flex;
  gap: 10px;
}
.game-card-actions .btn {
  flex: 1;
}

/* ==========================================================================
   VIEW 4: GAME DETAIL DASHBOARD
   ========================================================================== */
#game-detail-container {
  display: none;
}

.game-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  height: 240px;
  display: flex;
  align-items: flex-end;
}
.game-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.game-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.3) 0%, rgba(10, 13, 20, 0.95) 100%);
}
.game-hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 32px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-title-group h1 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
}
.hero-title-group .hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Management Tabs Navigation */
.tabs-navbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 20, 34, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  font-family: inherit;
}
.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}
.tab-btn.active {
  color: #03131c;
  background: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
  font-weight: 700;
}
.tab-btn .tab-icon {
  font-size: 1.1rem;
}

/* Tab Content Areas */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-pane.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Common Content Grid */
.detail-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.detail-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Panel Header */
.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-body {
  padding: 24px;
}

/* ==========================================================================
   TAB 1: SZERVERINFORMÁCIÓ (READ-ONLY)
   ========================================================================== */
.readonly-notice {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #7dd3fc;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.info-table td {
  padding: 12px 14px;
  font-size: 0.9rem;
}
.info-table td.key {
  color: var(--text-muted);
  width: 40%;
  font-weight: 500;
}
.info-table td.val {
  color: var(--text-main);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ==========================================================================
   TAB 2: SZERVER BEÁLLÍTÁS (SETTINGS & POWER)
   ========================================================================== */
.power-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

/* Switch Toggle Component */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: relative;
  width: 48px;
  height: 26px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  transition: 0.3s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}
.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================================================
   TAB 3: SZERVERKARBANTARTÁS (MAINTENANCE, LIVE CONSOLE, LOGS)
   ========================================================================== */
.terminal-window {
  background: #06090e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}
.terminal-topbar {
  background: #0f1422;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-stream {
  height: 380px;
  padding: 16px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
  background: radial-gradient(circle at top left, #0b111e 0%, #06090e 100%);
}
.term-line {
  margin-bottom: 4px;
  word-break: break-all;
}
.term-time {
  color: var(--text-dim);
  margin-right: 8px;
}
.term-tag-info {
  color: var(--info);
  font-weight: 600;
}
.term-tag-warn {
  color: var(--warning);
  font-weight: 600;
}
.term-tag-error {
  color: #fff;
  background: #dc2626;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.term-tag-cheat {
  color: #c084fc;
  font-weight: 600;
}

.terminal-input-bar {
  display: flex;
  background: #0a0d14;
  border-top: 1px solid var(--border-subtle);
  padding: 8px 14px;
}
.terminal-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
}

/* Server Error Log Box (highlighted red) */
.error-log-card {
  border-left: 4px solid var(--danger);
  background: rgba(239, 68, 68, 0.05);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 12px;
}
.error-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.error-log-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}
.error-log-msg {
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ==========================================================================
   TAB 4: SZERVER FIGYELŐ (LINUX HARDWARE & PERFORMANCE)
   ========================================================================== */
.gauge-card {
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gauge-circle-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 16px;
}
.gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.gauge-bg-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 10;
}
.gauge-fill-ring {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 0.8s ease, stroke 0.3s ease;
}
.gauge-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-number {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.gauge-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.resource-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.85rem;
}
.progress-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 16px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ==========================================================================
   TAB 5: ADMINISZTRÁCIÓS MENÜ (1-CLICK ADMIN, CHEATS, SPAWNER)
   ========================================================================== */
.admin-badge-notice {
  background: linear-gradient(90deg, rgba(157, 78, 221, 0.15), rgba(0, 242, 254, 0.1));
  border: 1px solid rgba(157, 78, 221, 0.3);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 1-Click Cheat Buttons Grid */
.cheats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.cheat-card-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: left;
  user-select: none;
}
.cheat-card-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.cheat-card-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(157, 78, 221, 0.15) 100%);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}
.cheat-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cheat-icon {
  font-size: 1.6rem;
}
.cheat-toggle-state {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: 0.3s;
}
.cheat-card-btn.active .cheat-toggle-state {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
.cheat-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.cheat-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Item Spawner Section */
.spawner-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}
.spawner-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.item-category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-pill {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}
.cat-pill:hover, .cat-pill.active {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--primary);
  font-weight: 600;
}

.item-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}
.item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.item-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.item-card.selected {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.12);
  box-shadow: 0 0 16px var(--primary-glow);
}
.item-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.item-tier-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-weight: 600;
}

/* Anti-Cheat Alert Banner */
.anticheat-shield-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

/* ==========================================================================
   TAB 6: MODOLÁSI RENDSZER (THUNDERSTORE)
   ========================================================================== */
.thunderstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--primary);
}

.mod-restart-pipeline-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pipeline-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pipeline-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #03131c;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.mod-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}
.mod-item-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.mod-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.mod-item-header h4 {
  font-size: 1rem;
  color: #fff;
}
.mod-version {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
}
.mod-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.mod-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

/* Modpack drop area */
.modpack-dropzone {
  border: 2px dashed rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.02);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 20px;
}
.modpack-dropzone:hover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.05);
}

/* ==========================================================================
   TAB 7: SZERVER LOG RENDSZER (FILTERABLE LOGS)
   ========================================================================== */
.log-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.log-table-box {
  background: #080c14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 520px;
  overflow-y: auto;
}
.log-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  transition: background 0.15s ease;
}
.log-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.log-row.log-error {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--danger);
}
.log-row.log-warn {
  background: rgba(245, 158, 11, 0.06);
  border-left: 4px solid var(--warning);
}
.log-col-time {
  width: 100px;
  color: var(--text-dim);
}
.log-col-level {
  width: 90px;
  font-weight: 700;
}
.log-col-msg {
  flex: 1;
  color: var(--text-main);
  word-break: break-all;
}

/* ==========================================================================
   TAB 8: TILTÁS LISTA (BAN LIST)
   ========================================================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.775rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   TAB 9: BACKUP RENDSZER (8:00 & 17:00, 3-DAY RETENTION)
   ========================================================================== */
.backup-schedule-hero {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(157, 78, 221, 0.08) 100%);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-xl);
  padding: 24px 30px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.schedule-badge-large {
  display: flex;
  align-items: center;
  gap: 16px;
}
.clock-icon-bubble {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #03131c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 20px var(--primary-glow);
}
.backup-times-box {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.backup-time-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  min-width: 320px;
  max-width: 440px;
  background: #0f1422;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-danger { border-left: 4px solid var(--danger); }
.toast.toast-info { border-left: 4px solid var(--primary); }
.toast.toast-warn { border-left: 4px solid var(--warning); }
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   MODAL WINDOWS
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 1024px) {
  .detail-grid-2 { grid-template-columns: 1fr; }
  .spawner-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .top-navbar { padding: 0 16px; }
  .nav-metrics { display: none; }
  .app-content { padding: 16px; }
  .games-grid { grid-template-columns: 1fr; }
  .game-hero { height: auto; padding-top: 100px; }
}

/* ==========================================================================
   NEW MODULES: BIOMES, PUNISHMENT CENTER, AUTO-FIXER, SERVER BROWSER
   ========================================================================== */

/* Valheim Biome Selector Pills */
.biome-selector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.biome-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.biome-pill:hover, .biome-pill.active {
  color: #fff;
  border-color: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.biome-pill.active {
  background: rgba(255, 255, 255, 0.12);
}
.biome-all.active { color: var(--primary); }
.biome-meadows { color: #86efac; }
.biome-blackforest { color: #22c55e; }
.biome-swamp { color: #84cc16; }
.biome-mountains { color: #7dd3fc; }
.biome-plains { color: #fbbf24; }
.biome-mistlands { color: #c084fc; }
.biome-ashlands { color: #f87171; }
.biome-ocean { color: #38bdf8; }

/* Valheim Server Browser Preview Card */
.server-browser-preview {
  background: linear-gradient(135deg, rgba(16, 24, 38, 0.9) 0%, rgba(10, 14, 24, 0.9) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.browser-row-data {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.browser-tag {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Punishment Center */
.punishment-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
}
.warn-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}
.warn-badge-high {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Auto-Fixer & Diagnostics */
.diagnostic-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.diagnostic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  gap: 16px;
}
.diagnostic-item.critical {
  border-left: 4px solid var(--danger);
  background: rgba(239, 68, 68, 0.05);
}
.diagnostic-item.non-critical {
  border-left: 4px solid var(--warning);
  background: rgba(245, 158, 11, 0.04);
}
.diagnostic-item.healthy {
  border-left: 4px solid var(--success);
  background: rgba(16, 185, 129, 0.04);
}

/* Countdown Alert Hero Banner */
.update-countdown-hero {
  display: none;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 2px solid var(--danger);
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
  animation: pulse-border 1.5s infinite;
}
@keyframes pulse-border {
  0%, 100% { border-color: rgba(239, 68, 68, 0.8); }
  50% { border-color: rgba(245, 158, 11, 0.8); }
}
.countdown-timer-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.countdown-digits {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ff4d4d;
  background: #080c14;
  padding: 4px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--danger);
  letter-spacing: 0.05em;
}

/* Console SteamID Lock Banner */
.console-lock-banner {
  background: rgba(16, 185, 129, 0.08);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  padding: 8px 16px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #34d399;
}

