/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
   ---------------------------------------------------- */
:root {
  /* Color Palette (Harmonious Dark Theme with Glowing Accents) */
  --bg-color: hsl(225, 22%, 6%);
  --bg-card: hsla(225, 18%, 12%, 0.65);
  --bg-card-hover: hsla(225, 18%, 16%, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(168, 85, 247, 0.4);
  
  --text-primary: hsl(0, 0%, 94%);
  --text-secondary: hsl(225, 12%, 75%);
  --text-muted: hsl(225, 8%, 55%);
  
  --accent-color: hsl(270, 85%, 65%);
  --accent-hover: hsl(270, 95%, 72%);
  --accent-glow: rgba(168, 85, 247, 0.3);
  
  --online-color: hsl(145, 85%, 45%);
  --online-glow: rgba(34, 197, 94, 0.25);
  --offline-color: hsl(355, 80%, 55%);
  --offline-glow: rgba(239, 68, 68, 0.25);
  --starting-color: hsl(45, 100%, 60%);
  --starting-glow: rgba(234, 179, 8, 0.25);
  --restarting-color: hsl(25, 100%, 60%);
  --restarting-glow: rgba(249, 115, 22, 0.25);
  
  /* Fonts */
  --font-logo: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadow & Blur System */
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(16px);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ----------------------------------------------------
   GLOW EFFECTS
   ---------------------------------------------------- */
.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.bg-glow-1 {
  background: var(--accent-color);
  top: -100px;
  right: -50px;
}

.bg-glow-2 {
  background: hsl(180, 80%, 45%);
  bottom: 10%;
  left: -150px;
}

/* ----------------------------------------------------
   LAYOUT CONTAINER
   ---------------------------------------------------- */
.app-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ----------------------------------------------------
   HEADER
   ---------------------------------------------------- */
.main-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.header-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--accent-color), hsl(180, 80%, 45%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px var(--accent-glow));
}

.logo-title {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.accent-text {
  color: var(--accent-color);
  text-shadow: 0 0 15px var(--accent-glow);
}

.logo-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
}

/* Connection Info Pill */
.connection-pill {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.connection-pill:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 15px var(--accent-glow);
}

.pill-label {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 0.5rem;
}

.pill-value {
  color: var(--text-primary);
  font-family: monospace;
  font-weight: 600;
  margin-right: 0.75rem;
}

.copy-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.copy-pill-btn:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* ----------------------------------------------------
   DEMO MODE BANNER
   ---------------------------------------------------- */
.demo-banner {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--border-radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: var(--glass-blur);
  animation: fadeIn 0.5s ease-out;
}

.demo-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.banner-icon {
  font-size: 1.4rem;
  color: var(--accent-color);
  margin-top: 0.1rem;
}

.banner-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.banner-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

/* ----------------------------------------------------
   TOOLBAR & FILTERS
   ---------------------------------------------------- */
.toolbar-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-glow);
}

.filter-controls {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* ----------------------------------------------------
   SERVERS LIST SECTION
   ---------------------------------------------------- */
.servers-section {
  flex: 1;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.server-count {
  display: flex;
  gap: 0.5rem;
}

.count-tag {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  color: var(--text-secondary);
}

.online-tag {
  color: var(--online-color);
}

/* Loading state */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  gap: 1.5rem;
  color: var(--text-secondary);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

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

/* ----------------------------------------------------
   SERVERS GRID & CARDS
   ---------------------------------------------------- */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  animation: fadeIn 0.6s ease-out;
}

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

/* Glass Server Card styling */
.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.server-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px 0 rgba(168, 85, 247, 0.15);
}

/* Header overlay for the card based on game type */
.card-header-banner {
  height: 120px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

/* Dynamic cover styles for standard games */
.game-minecraft {
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(11,12,16,0.95) 100%), 
              url('https://images.unsplash.com/photo-1607988795691-3d0147b43231?auto=format&fit=crop&w=600&q=80');
}

.game-valheim {
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(11,12,16,0.95) 100%), 
              url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=600&q=80');
}

.game-palworld {
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(11,12,16,0.95) 100%), 
              url('https://images.unsplash.com/photo-1627856013091-fed6e4e30025?auto=format&fit=crop&w=600&q=80');
}

.game-satisfactory {
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(11,12,16,0.95) 100%), 
              url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=600&q=80');
}

.game-factorio {
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(11,12,16,0.95) 100%), 
              url('https://cdn.cloudflare.steamstatic.com/steam/apps/427520/header.jpg');
}

.game-generic {
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(11,12,16,0.95) 100%), 
              url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=600&q=80');
}

/* Badges on Banner */
.badge-container {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
}

.game-badge {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dynamic status light on card */
.status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.65);
}

.status-badge.online {
  color: var(--online-color);
  border: 1px solid var(--online-color);
  box-shadow: 0 0 10px var(--online-glow);
}

.status-badge.offline {
  color: var(--offline-color);
  border: 1px solid var(--offline-color);
  box-shadow: 0 0 10px var(--offline-glow);
}

.status-badge.starting {
  color: var(--starting-color);
  border: 1px solid var(--starting-color);
  box-shadow: 0 0 10px var(--starting-glow);
}

.status-badge.restarting {
  color: var(--restarting-color);
  border: 1px solid var(--restarting-color);
  box-shadow: 0 0 10px var(--restarting-glow);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

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

.offline .status-dot {
  background-color: var(--offline-color);
  box-shadow: 0 0 8px var(--offline-color);
}

.starting .status-dot {
  background-color: var(--starting-color);
  box-shadow: 0 0 8px var(--starting-color);
  animation: startingDotPulse 1.5s infinite ease-in-out;
}

.restarting .status-dot {
  background-color: var(--restarting-color);
  box-shadow: 0 0 8px var(--restarting-color);
  animation: restartingDotPulse 1.5s infinite ease-in-out;
}

@keyframes startingDotPulse {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 6px var(--starting-color); }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--starting-color); }
  100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 6px var(--starting-color); }
}

@keyframes restartingDotPulse {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 6px var(--restarting-color); }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--restarting-color); }
  100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 6px var(--restarting-color); }
}

/* Server Title inside Banner bottom */
.server-card-title {
  font-family: var(--font-logo);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Card Content Area */
.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.server-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}

/* Server metrics layout */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-md);
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-icon {
  font-size: 0.75rem;
  margin-right: 0.25rem;
  color: var(--accent-color);
}

/* Connection Block */
.connection-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.connection-block:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

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

.connect-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.connect-address {
  font-family: monospace;
  color: var(--text-primary);
  font-weight: 600;
}

.connect-btn {
  background: var(--accent-color);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.connect-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.connect-btn.disabled {
  background: hsla(225, 10%, 15%, 0.8);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.connect-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Connection Block Restarting */
.connection-block.locked.restarting {
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.02);
}

/* ----------------------------------------------------
   EMPTY STATE & EXCEPTIONS
   ---------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  backdrop-filter: var(--glass-blur);
  margin-top: 1rem;
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-family: var(--font-logo);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 400px;
}

/* ----------------------------------------------------
   FOOTER
   ---------------------------------------------------- */
.main-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-badges {
  display: flex;
  gap: 0.75rem;
}

.footer-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

.footer-badge i {
  color: var(--accent-color);
  margin-right: 0.25rem;
}

/* ----------------------------------------------------
   TOAST NOTIFICATION
   ---------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: hsl(225, 20%, 10%);
  border: 1px solid var(--border-hover);
  border-left: 4px solid var(--accent-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  backdrop-filter: var(--glass-blur);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 320px;
}

.toast-icon {
  font-size: 1.5rem;
  color: var(--online-color);
}

.toast-body strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}

.toast-body p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@keyframes slideIn {
  from { transform: translateY(100px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN MEDIA QUERIES
   ---------------------------------------------------- */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-controls {
    width: 100%;
  }
  
  .connection-pill {
    width: 100%;
    justify-content: space-between;
  }
  
  .toolbar-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .filter-controls {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    width: 100%;
  }
  
  .filter-btn {
    white-space: nowrap;
  }
  
  .servers-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----------------------------------------------------
   INTERACTIVE LINKS INSIDE DESCRIPTIONS
   ---------------------------------------------------- */
.desc-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px dashed var(--accent-color);
  padding-bottom: 1px;
  transition: var(--transition-smooth);
}

.desc-link:hover {
  color: var(--accent-hover);
  border-bottom-style: solid;
  text-shadow: 0 0 8px var(--accent-glow);
}

/* ----------------------------------------------------
   GOOGLE OAUTH & WHITELIST AUTHENTICATION UI
   ---------------------------------------------------- */

/* Google Login Button */
.google-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.google-login-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-1px);
}

.google-login-btn i {
  color: #ea4335;
  font-size: 1rem;
}

/* User Profile Pill */
.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  font-size: 0.85rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.user-profile-pill:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  object-fit: cover;
}

.user-info-box {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.user-status.approved {
  color: var(--online-color);
}

.user-status.pending {
  color: hsl(45, 100%, 60%);
}

/* Auth Actions / Logout Button */
.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.logout-btn:hover {
  color: var(--offline-color);
  transform: scale(1.1);
}

/* Header Controls Auth Container */
.auth-wrapper {
  display: flex;
  align-items: center;
}

/* Loading state for auth */
.auth-loading-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-in-out;
  box-shadow: 0 0 8px var(--accent-color);
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* Locked connection blocks */
.connection-block.locked:hover {
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.03);
}

.connection-block.locked .connect-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  box-shadow: none;
  text-decoration: none;
}

.connection-block.locked .connect-btn:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Admin Panel Link in Profile Pill */
.admin-panel-btn {
  background: transparent;
  border: none;
  color: var(--accent-light);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-right: 0.6rem;
  text-decoration: none;
}

.admin-panel-btn:hover {
  color: var(--accent-color);
  transform: scale(1.15);
}

/* Custom starting-widget hover and active button states */
.connection-block.starting-widget:hover {
  border-color: rgba(234, 179, 8, 0.5) !important;
  background: rgba(234, 179, 8, 0.04) !important;
}

.connection-block.starting-widget .connect-btn.disabled {
  background: rgba(234, 179, 8, 0.1) !important;
  color: var(--starting-color) !important;
  box-shadow: none !important;
  border: none !important;
  cursor: wait !important;
}

/* ====================================================
   KO-FI SUPPORT BUTTON PREMIUM COMPONENT
   ==================================================== */
.kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 94, 91, 0.08);
  border: 1px solid rgba(255, 94, 91, 0.2);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  white-space: nowrap;
}

.kofi-btn:hover {
  background: rgba(255, 94, 91, 0.15);
  border-color: rgba(255, 94, 91, 0.5);
  box-shadow: 0 0 15px rgba(255, 94, 91, 0.3);
  transform: translateY(-1px);
}

.kofi-icon {
  color: #ff5e5b;
  font-size: 0.95rem;
  filter: drop-shadow(0 0 4px rgba(255, 94, 91, 0.6));
  animation: heartBeat 2s infinite ease-in-out;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
  70% { transform: scale(1); }
}

/* Ensure controls align and flex-wrap neatly on smaller screens */
.header-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ====================================================
   SERVER SPECS BUTTON & DETAILS RIG CARD
   ==================================================== */

/* Specs Button in Header */
.specs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  white-space: nowrap;
}

.specs-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-1px);
}

.specs-btn-icon {
  color: var(--accent-color);
  font-size: 0.95rem;
}

/* Modal Overlay Background */
.specs-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 7, 10, 0.75);
  backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: specsFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Card itself ("The Rig Card") */
.specs-modal-card {
  background: hsla(225, 20%, 10%, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem;
  max-width: 550px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.1);
  backdrop-filter: var(--glass-blur);
  position: relative;
  animation: rigScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Close Button on Modal */
.specs-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.specs-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--offline-color);
  transform: rotate(90deg);
}

/* Header Elements inside Card */
.specs-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.specs-title {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.specs-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--online-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specs-status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--online-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--online-color);
  animation: specsDotPulse 1.5s infinite ease-in-out;
}

@keyframes specsDotPulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

/* Grid layout for specifications */
.specs-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.spec-card-row {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0.9rem 1.1rem;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.spec-card-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.25);
  transform: translateX(4px);
}

.spec-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.spec-icon-cpu { color: hsl(145, 85%, 50%); filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.3)); }
.spec-icon-ram { color: hsl(180, 80%, 45%); filter: drop-shadow(0 0 4px rgba(12, 240, 233, 0.3)); }
.spec-icon-disk { color: hsl(300, 85%, 65%); filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.3)); }
.spec-icon-os { color: hsl(205, 85%, 55%); filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.3)); }
.spec-icon-net { color: var(--starting-color); filter: drop-shadow(0 0 4px rgba(234, 179, 8, 0.3)); }

.spec-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.spec-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

/* Disk Usage visual progress bar */
.spec-usage-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  overflow: hidden;
  margin-top: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.spec-usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), hsl(180, 80%, 45%));
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
  border-radius: 50px;
  width: 27%; /* 27% utilization based on real SSD stats! */
  animation: usageFillIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes usageFillIn {
  from { width: 0%; }
}

/* Modal Animations */
@keyframes specsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rigScaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ====================================================
   DYNAMIC PING LATENCY SVG CHART
   ==================================================== */
.latency-pill-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  height: 38px;
}

.latency-chart-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  z-index: 2;
}

.latency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--online-color);
  box-shadow: 0 0 8px var(--online-color);
  display: inline-block;
  transition: var(--transition-smooth);
}

.latency-dot.excellent { background-color: var(--online-color); box-shadow: 0 0 8px var(--online-color); }
.latency-dot.good { background-color: hsl(45, 100%, 60%); box-shadow: 0 0 8px hsl(45, 100%, 60%); }
.latency-dot.poor { background-color: var(--offline-color); box-shadow: 0 0 8px var(--offline-color); }

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

.latency-value {
  color: var(--text-primary);
  font-family: monospace;
}

.latency-svg-chart {
  width: 70px;
  height: 20px;
  z-index: 1;
  flex-shrink: 0;
  opacity: 0.75;
}

/* ====================================================
   SLIDE-OUT DETAILS DRAWER
   ==================================================== */
.details-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  background: hsla(225, 20%, 8%, 0.85);
  border-left: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8), -5px 0 20px rgba(168, 85, 247, 0.15);
  backdrop-filter: blur(25px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.details-drawer.hidden {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  display: flex !important; /* Force flex even when hidden, layout is handled by translate */
}

@keyframes slideDrawerIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--offline-color);
  transform: rotate(90deg);
}

.drawer-title {
  font-family: var(--font-logo);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-right: 2rem;
}

.drawer-game-badge {
  align-self: flex-start;
}

.drawer-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-section-title {
  font-family: var(--font-logo);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-color);
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  padding-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.drawer-highlight-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.15);
  color: var(--text-primary);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.drawer-mods-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-mod-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: var(--transition-smooth);
}

.drawer-mod-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.25);
  transform: translateX(4px);
}

.drawer-mod-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-mod-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.drawer-setup-box {
  background: rgba(12, 240, 233, 0.02);
  border: 1px solid rgba(12, 240, 233, 0.15);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-setup-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.drawer-setup-icon {
  color: #0cf0e9;
}

.drawer-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-color);
  border: none;
  color: white;
  padding: 0.85rem;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px var(--accent-glow);
  margin-top: 0.5rem;
  text-align: center;
}

.drawer-download-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1px);
}

/* ====================================================
   VIP / SUPPORTER HALL OF FAME WALL
   ==================================================== */
.supporters-section {
  width: 100%;
}

.supporters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.supporter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.supporter-card:hover {
  transform: translateY(-5px);
}

/* Dynamic Supporter Card Neon Border Glows */
.supporter-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--tier-glow, var(--accent-color));
  box-shadow: 0 0 10px var(--tier-glow, var(--accent-glow));
}

.supporter-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tier-glow, var(--accent-color));
  box-shadow: 0 0 12px var(--tier-glow, rgba(168, 85, 247, 0.2));
  margin-bottom: 1rem;
}

.supporter-name {
  font-family: var(--font-logo);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.supporter-tier {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tier-glow, var(--accent-color));
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.supporter-message {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

/* ====================================================
   WAKE UP SERVER BUTTON STYLING (OFFLINE CARDS)
   ==================================================== */
.wakeup-btn {
  background: rgba(168, 85, 247, 0.1) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  color: var(--accent-color) !important;
  width: auto !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font-size: 0.8rem !important;
  box-shadow: none !important;
}

.wakeup-btn:hover {
  background: var(--accent-color) !important;
  color: white !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 12px var(--accent-glow) !important;
}

.wakeup-btn.loading-state {
  cursor: wait !important;
  opacity: 0.75 !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-color) !important;
}

/* ====================================================
   WHITELIST+ SYSTEM UPGRADES & STYLING
   ==================================================== */

/* Pulsing Crown Indicator */
.pulse-glow {
  color: hsl(270, 85%, 65%);
  filter: drop-shadow(0 0 4px var(--accent-glow));
  animation: crownPulse 2s infinite ease-in-out;
}

@keyframes crownPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.3)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7)); color: hsl(270, 95%, 72%); }
  100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.3)); }
}

.user-status.approved-plus {
  color: hsl(270, 85%, 65%) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
  background: rgba(168, 85, 247, 0.08) !important;
  font-weight: 700 !important;
}

/* Card Connection Block Restart Button */
.restart-btn {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: hsl(0, 80%, 65%) !important;
  box-shadow: none !important;
}

.restart-btn:hover {
  background: hsl(0, 80%, 55%) !important;
  color: white !important;
  border-color: hsl(0, 80%, 55%) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
}

.restart-btn.loading-state {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-color) !important;
  cursor: wait !important;
}

/* Server Issue Report Menu Dropdown */
.report-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.report-trigger-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: hsl(0, 85%, 65%);
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  gap: 0.3rem;
}

.report-trigger-btn:hover {
  background: hsl(0, 85%, 55%);
  border-color: hsl(0, 85%, 55%);
  color: white;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  transform: scale(1.05);
}

.report-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: hsla(225, 20%, 8%, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  border-radius: var(--border-radius-md);
  padding: 1rem 1.25rem;
  width: 280px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: reportFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

@keyframes reportFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.report-menu-title {
  font-family: var(--font-logo);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.5rem;
  margin-bottom: 0.1rem;
}

.report-menu-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.report-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  padding: 0.4rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  width: 100%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.report-select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.report-textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  padding: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  width: 100%;
  height: 60px;
  resize: none;
  transition: var(--transition-smooth);
}

.report-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.report-send-btn {
  background: hsl(0, 80%, 55%);
  border: none;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.report-send-btn:hover {
  background: hsl(0, 85%, 60%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.report-send-btn.loading-state {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: wait;
}

/* ====================================================
   STATUS GROUP, REPORT COLUMN, RESTART BUTTON & DROPDOWN ALIGNMENT (v1.17.0)
   ==================================================== */

.header-status-group {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  z-index: 10;
}

.report-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.header-status-group .status-badge {
  position: static;
  top: auto;
  right: auto;
}

.card-restart-btn {
  background: rgba(6, 7, 10, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: hsl(0, 85%, 65%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}

.card-restart-btn:hover {
  background: hsl(0, 80%, 55%);
  color: white;
  border-color: hsl(0, 80%, 55%);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
  transform: scale(1.08);
}

.card-restart-btn.loading-state {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border-color: var(--border-color);
  cursor: wait;
}

.card-restart-btn i {
  pointer-events: none;
}

/* Ensure the warning report dropdown stays within card boundaries */
.header-status-group .report-menu {
  right: 0;
  left: auto;
}

/* ====================================================
   SPLIT HEADER ALIGNMENTS & GROUPING (v1.19.0)
   ==================================================== */

.header-right-side {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.header-profile-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Specific profile pill interactive cursors */
.user-profile-pill {
  transition: var(--transition-smooth);
}

.user-profile-pill:active {
  transform: scale(0.97);
}

/* Media Query Responsive Adjustments */
@media (max-width: 992px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .header-right-side {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .header-right-side {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .header-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .header-profile-group {
    width: 100%;
    align-items: stretch;
  }

  .user-profile-pill {
    width: 100%;
    justify-content: space-between;
  }

  .connection-pill {
    width: 100%;
    justify-content: space-between;
  }
}

/* Custom spacing for multi-section dashboard layout */
.servers-section {
  margin-bottom: 3.5rem;
}

.empty-state-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: hsla(225, 20%, 8%, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(15px);
  text-align: center;
  color: var(--text-secondary);
  gap: 0.75rem;
  max-width: 500px;
  margin: 1rem auto;
}

.empty-icon-small {
  font-size: 2.2rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.empty-state-small h3 {
  font-family: var(--font-logo);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.empty-state-small p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* Active Online Cards Visual Highlights */
#online-grid .server-card {
  border: 1px solid rgba(34, 197, 94, 0.18);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.02);
}
#online-grid .server-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.06);
}

/* Sleeping Offline Cards Visual Desaturation */
#offline-grid .server-card {
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(11, 12, 16, 0.45);
}
#offline-grid .card-header-banner {
  filter: grayscale(60%) opacity(65%);
  transition: var(--transition-smooth);
}
#offline-grid .server-card:hover .card-header-banner {
  filter: grayscale(30%) opacity(80%);
}
#offline-grid .server-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

/* WIP Under Construction Cards Visual Desaturation */
#wip-grid .server-card {
  border: 1px dashed rgba(234, 179, 8, 0.15);
  background: rgba(11, 12, 16, 0.35);
  opacity: 0.75;
  transition: var(--transition-smooth);
}
#wip-grid .card-header-banner {
  filter: grayscale(100%) opacity(40%);
  transition: var(--transition-smooth);
}
#wip-grid .server-card:hover {
  opacity: 0.9;
  border-color: rgba(234, 179, 8, 0.3);
}
#wip-grid .server-card:hover .card-header-banner {
  filter: grayscale(70%) opacity(60%);
}
