/* ===========================================
   FiveXmetrics - Dashboard & Metrics Styles
   FiveX tasarım sistemini genişletir
   =========================================== */

/* ===== STICKY FOOTER LAYOUT ===== */
html, body { height: 100%; }
body.fx-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.fx-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.fx-footer { flex-shrink: 0; }

/* ===== METRICS LOGO / BRANDING ===== */
.fx-nav-logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--fx-text);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.fx-nav-logo-text .accent {
  background: linear-gradient(135deg, #818cf8, #6366f1, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fx-nav-logo-text .suffix {
  font-size: 0.7em;
  font-weight: 600;
  color: var(--fx-text-3);
  letter-spacing: 0;
  position: relative;
  padding-left: 0.55rem;
}
.fx-nav-logo-text .suffix::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.05em;
  background: var(--fx-card-border);
}
.fx-nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
.fx-nav-logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.fx-loader-logo-text {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.fx-loader-logo-text .accent {
  background: linear-gradient(135deg, #818cf8, #6366f1, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fx-loader-logo-text .suffix {
  font-size: 0.4em;
  font-weight: 600;
  color: var(--fx-text-3);
  letter-spacing: 0;
  padding-left: 0.85rem;
  border-left: 1px solid var(--fx-card-border);
}
.fx-loader-logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}
.fx-loader-logo-fallback {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
}

/* Footer logo small sizing */
.fx-footer-brand .fx-nav-logo-img { height: 28px; }
.fx-footer-legal {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fx-card-border);
  font-size: 0.78rem;
  color: var(--fx-text-3);
  line-height: 1.7;
}
.fx-footer-legal p { margin: 0.15rem 0; }
.fx-footer-legal strong { color: var(--fx-text-2); font-weight: 600; }
.fx-footer-legal a { color: var(--fx-text-2); }
.fx-footer-legal a:hover { color: var(--fx-accent); }

/* ===== SERVER LOOKUP / SEARCH BAR ===== */
.fx-lookup-card {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--fx-card);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius-xl);
  box-shadow: var(--fx-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.fx-lookup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .fx-lookup-form { flex-direction: row; }
}
.fx-lookup-form .fx-input {
  flex: 1;
  font-size: 1rem;
  padding: 1rem 1.25rem;
}
.fx-lookup-hint {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--fx-text-3);
  text-align: center;
}
.fx-lookup-hint code {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--fx-card-border);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 0.85em;
  color: var(--fx-accent);
}

/* ===== DASHBOARD CONTAINER ===== */
.fx-dashboard {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.fx-dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--fx-card-border);
}
.fx-dashboard-title h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.fx-dashboard-title .fx-server-ip {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fx-text-3);
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--fx-card-border);
  padding: 4px 10px;
  border-radius: 8px;
}
.fx-dashboard-title p {
  font-size: 0.9rem;
  color: var(--fx-text-2);
}
.fx-dashboard-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ===== STATUS BADGE ===== */
.fx-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid;
}
.fx-status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: fxPulse 2s ease-in-out infinite;
}
.fx-status-online {
  color: var(--fx-green);
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}
.fx-status-online .dot {
  background: var(--fx-green);
  box-shadow: 0 0 10px var(--fx-green-glow);
}
.fx-status-offline {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}
.fx-status-offline .dot {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
.fx-status-loading {
  color: var(--fx-text-2);
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--fx-card-border);
}
.fx-status-loading .dot {
  background: var(--fx-text-2);
  animation: fxPulse 1s ease-in-out infinite;
}

/* ===== METRICS GRID ===== */
.fx-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .fx-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .fx-metrics-grid { grid-template-columns: repeat(4, 1fr); }
}

.fx-metric-card {
  position: relative;
  padding: 1.5rem;
  background: var(--fx-card);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius-lg);
  transition: var(--fx-transition);
  overflow: hidden;
}
.fx-metric-card:hover {
  border-color: var(--fx-card-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--fx-shadow);
}
.fx-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fx-accent-2), var(--fx-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.fx-metric-card:hover::before { opacity: 1; }

.fx-metric-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.fx-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fx-metric-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--fx-accent);
}
.fx-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--fx-text-3);
  margin-bottom: 0.5rem;
}
.fx-metric-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-text);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.fx-metric-value .unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fx-text-3);
}
.fx-metric-value .max {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fx-text-3);
}
.fx-metric-sub {
  font-size: 0.78rem;
  color: var(--fx-text-3);
  margin-top: 0.5rem;
}
.fx-metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.08);
  color: var(--fx-green);
}

/* ===== PROGRESS BAR ===== */
.fx-progress {
  width: 100%;
  height: 6px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.fx-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--fx-accent-2), var(--fx-accent));
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fx-progress-bar.warn {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.fx-progress-bar.danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ===== INFO PANEL ===== */
.fx-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) {
  .fx-info-grid { grid-template-columns: 2fr 1fr; }
}
.fx-info-panel {
  background: var(--fx-card);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
}
.fx-info-panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--fx-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fx-info-panel-header h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fx-info-panel-header h3 svg {
  width: 18px;
  height: 18px;
  color: var(--fx-accent);
}
.fx-info-panel-body {
  padding: 1.5rem;
}

/* Info List */
.fx-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.fx-info-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--fx-card-border);
  gap: 1rem;
}
.fx-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.fx-info-list .key {
  font-size: 0.85rem;
  color: var(--fx-text-3);
  font-weight: 500;
  flex-shrink: 0;
}
.fx-info-list .value {
  font-size: 0.85rem;
  color: var(--fx-text);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
}
.fx-info-list .value.text {
  font-family: inherit;
}

/* Tags */
.fx-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  max-width: 60%;
}
.fx-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--fx-card-border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fx-accent);
  font-family: inherit;
}

/* Boolean Indicators */
.fx-bool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
}
.fx-bool-true {
  background: rgba(34, 197, 94, 0.08);
  color: var(--fx-green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.fx-bool-false {
  background: rgba(100, 116, 139, 0.08);
  color: var(--fx-text-3);
  border: 1px solid var(--fx-card-border);
}

/* ===== PLAYER LIST ===== */
.fx-player-list {
  list-style: none;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.fx-player-list::-webkit-scrollbar { width: 4px; }
.fx-player-list::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.2); border-radius: 2px; }

.fx-player-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--fx-radius);
  transition: var(--fx-transition);
  margin-bottom: 0.4rem;
}
.fx-player-item:hover {
  background: rgba(99, 102, 241, 0.05);
}
.fx-player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fx-accent-2), var(--fx-accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}
.fx-player-info {
  flex: 1;
  min-width: 0;
}
.fx-player-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fx-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-player-id {
  font-size: 0.72rem;
  color: var(--fx-text-3);
  font-family: 'SF Mono', Monaco, Menlo, monospace;
}
.fx-player-ping {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
}
.fx-ping-good {
  background: rgba(34, 197, 94, 0.08);
  color: var(--fx-green);
}
.fx-ping-medium {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}
.fx-ping-bad {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.fx-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--fx-text-3);
}
.fx-empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  opacity: 0.4;
}
.fx-empty-state p {
  font-size: 0.9rem;
}

/* ===== RESOURCE LIST ===== */
.fx-resource-search {
  margin-bottom: 1rem;
}
.fx-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.fx-resource-grid::-webkit-scrollbar { width: 4px; }
.fx-resource-grid::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.2); border-radius: 2px; }

.fx-resource-item {
  padding: 0.6rem 0.85rem;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid var(--fx-card-border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--fx-text-2);
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--fx-transition);
}
.fx-resource-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--fx-text);
  border-color: var(--fx-card-border-hover);
}

/* ===== ERROR STATE ===== */
.fx-error-state {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 520px;
  margin: 0 auto;
}
.fx-error-state .icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fx-error-state .icon-wrap svg {
  width: 32px;
  height: 32px;
  color: #ef4444;
}
.fx-error-state h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.fx-error-state p {
  color: var(--fx-text-2);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== SKELETON LOADER ===== */
.fx-skeleton {
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.04) 0%,
    rgba(99, 102, 241, 0.1) 50%,
    rgba(99, 102, 241, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: fxSkeletonLoad 1.5s ease-in-out infinite;
  border-radius: 6px;
  display: inline-block;
}
@keyframes fxSkeletonLoad {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.fx-skeleton-text {
  height: 14px;
  width: 100%;
}
.fx-skeleton-num {
  height: 32px;
  width: 60%;
}

/* ===== LIVE INDICATOR ===== */
.fx-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fx-green);
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 6px;
}
.fx-live-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fx-green);
  box-shadow: 0 0 8px var(--fx-green-glow);
  animation: fxPulse 1.5s ease-in-out infinite;
}

/* ===== REFRESH BUTTON ===== */
.fx-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--fx-card-border);
  color: var(--fx-text-2);
  cursor: pointer;
  transition: var(--fx-transition);
}
.fx-refresh-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--fx-accent);
  border-color: var(--fx-card-border-hover);
}
.fx-refresh-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s;
}
.fx-refresh-btn.spinning svg {
  animation: fxSpin 1s linear infinite;
}
@keyframes fxSpin {
  to { transform: rotate(360deg); }
}

/* ===== CODE BLOCK (DOCS) ===== */
.fx-code {
  background: rgba(4, 7, 17, 0.6);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fx-text-2);
  margin: 1rem 0;
}
.fx-code .keyword { color: var(--fx-accent); }
.fx-code .string { color: #86efac; }
.fx-code .comment { color: var(--fx-text-3); font-style: italic; }
.fx-code .punctuation { color: var(--fx-text-3); }

/* ===== TOAST NOTIFICATIONS ===== */
.fx-toast-container {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.fx-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: rgba(12, 18, 38, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--fx-card-border-hover);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow-lg);
  font-size: 0.88rem;
  color: var(--fx-text);
  pointer-events: auto;
  animation: fxToastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 360px;
}
.fx-toast.error { border-color: rgba(239, 68, 68, 0.3); }
.fx-toast.success { border-color: rgba(34, 197, 94, 0.3); }
.fx-toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.fx-toast.error svg { color: #ef4444; }
.fx-toast.success svg { color: var(--fx-green); }
@keyframes fxToastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== UTILITIES ===== */
.fx-text-mono { font-family: 'SF Mono', Monaco, Menlo, monospace; }
.fx-mt-1 { margin-top: 0.5rem; }
.fx-mt-2 { margin-top: 1rem; }
.fx-mt-3 { margin-top: 1.5rem; }
.fx-mt-4 { margin-top: 2rem; }
.fx-text-center { text-align: center; }

/* Mobile adjustments */
@media (max-width: 640px) {
  .fx-dashboard { padding: 1rem; }
  .fx-dashboard-header { flex-direction: column; align-items: flex-start; }
  .fx-info-list li { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .fx-info-list .value { text-align: left; }
  .fx-tag-list { justify-content: flex-start; max-width: 100%; }
  .fx-toast-container { left: 1rem; right: 1rem; }
  .fx-toast { max-width: 100%; }
}

/* ===========================================
   ===== SERVERS LIST / TOP LIST PAGE =====
   =========================================== */

/* Search & filter bar */
.fx-servers-toolbar {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: var(--fx-card);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.fx-servers-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.fx-servers-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.fx-servers-search-input-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--fx-text-3);
  pointer-events: none;
}
.fx-servers-search-input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.85rem;
  background: var(--fx-bg-2);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  color: var(--fx-text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.fx-servers-search-input:focus {
  border-color: var(--fx-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.fx-servers-filters {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  align-items: center;
}
.fx-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--fx-text-3);
}
.fx-filter-group label {
  font-weight: 500;
  color: var(--fx-text-2);
}
.fx-select {
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  background: var(--fx-bg-2);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius-sm);
  color: var(--fx-text);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' 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/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  transition: all 0.2s ease;
}
.fx-select:hover { border-color: var(--fx-card-border-hover); }
.fx-select:focus {
  border-color: var(--fx-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.fx-toggle-pills {
  display: inline-flex;
  background: var(--fx-bg-2);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius-sm);
  padding: 3px;
  gap: 2px;
}
.fx-toggle-pill {
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: none;
  color: var(--fx-text-3);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: calc(var(--fx-radius-sm) - 3px);
  transition: all 0.18s ease;
}
.fx-toggle-pill:hover { color: var(--fx-text); }
.fx-toggle-pill.active {
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-3));
  color: white;
  font-weight: 600;
}

/* Result summary */
.fx-servers-summary {
  max-width: 1200px;
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  color: var(--fx-text-3);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fx-servers-count strong { color: var(--fx-accent); font-weight: 700; }

/* Server list grid */
.fx-servers-list {
  max-width: 1200px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0 0.25rem;
}

/* Server card */
.fx-server-card {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.5rem;
  background: var(--fx-card);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius-lg);
  transition: all 0.22s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.fx-server-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.fx-server-card:hover {
  border-color: var(--fx-card-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--fx-shadow);
}
.fx-server-card:hover::before { opacity: 1; }

.fx-server-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--fx-bg-2);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--fx-text-3);
  font-family: 'SF Mono', Monaco, Menlo, monospace;
}
.fx-server-rank.gold {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(250, 204, 21, 0.05));
  border-color: rgba(250, 204, 21, 0.4);
  color: #facc15;
}
.fx-server-rank.silver {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.15), rgba(203, 213, 225, 0.05));
  border-color: rgba(203, 213, 225, 0.4);
  color: #cbd5e1;
}
.fx-server-rank.bronze {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  border-color: rgba(249, 115, 22, 0.4);
  color: #fb923c;
}

.fx-server-info { min-width: 0; }
.fx-server-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fx-text);
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-server-name .fx-server-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fx-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  flex-shrink: 0;
}
.fx-server-name .fx-server-status-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.fx-server-desc {
  font-size: 0.83rem;
  color: var(--fx-text-3);
  margin: 0 0 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 540px;
}
.fx-server-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}
.fx-server-meta .fx-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
}
.fx-server-meta .fx-tag.locale {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--fx-accent);
}
.fx-server-meta .fx-tag.gametype {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.fx-server-players-block {
  text-align: right;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
}
.fx-server-players-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fx-text);
  line-height: 1;
}
.fx-server-players-num .max {
  color: var(--fx-text-3);
  font-weight: 500;
  font-size: 0.85em;
}
.fx-server-players-label {
  font-size: 0.7rem;
  color: var(--fx-text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.fx-server-action {
  padding: 0.65rem 1.15rem;
  font-size: 0.85rem;
}

/* Empty / loading states */
.fx-servers-empty,
.fx-servers-loading {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 4rem 2rem;
  text-align: center;
  background: var(--fx-card);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius-xl);
  color: var(--fx-text-3);
}
.fx-servers-empty svg,
.fx-servers-loading svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}
.fx-servers-empty h3 {
  color: var(--fx-text);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.fx-servers-loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--fx-card-border);
  border-top-color: var(--fx-accent);
  border-radius: 50%;
  animation: fxSpin 0.8s linear infinite;
  margin-bottom: 1rem;
}
@keyframes fxSpin { to { transform: rotate(360deg); } }

/* ===== DASHBOARD: ADD SERVER QUICK SEARCH ===== */
.fx-lookup-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 4px;
  background: var(--fx-bg-2);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius-sm);
}
.fx-lookup-tab {
  flex: 1;
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: none;
  color: var(--fx-text-3);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: calc(var(--fx-radius-sm) - 3px);
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.fx-lookup-tab:hover { color: var(--fx-text); }
.fx-lookup-tab.active {
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-3));
  color: white;
  font-weight: 600;
}
.fx-lookup-tab svg { width: 14px; height: 14px; }

.fx-lookup-pane { display: none; }
.fx-lookup-pane.active { display: block; }

/* Server name autocomplete dropdown */
.fx-autocomplete {
  position: relative;
  flex: 1;
}
.fx-autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(12, 18, 38, 0.98);
  border: 1px solid var(--fx-card-border-hover);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow-lg);
  z-index: 100;
  display: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.fx-autocomplete-list.open { display: block; }
.fx-autocomplete-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--fx-card-border);
}
.fx-autocomplete-item:last-child { border-bottom: none; }
.fx-autocomplete-item:hover,
.fx-autocomplete-item.highlight {
  background: rgba(99, 102, 241, 0.1);
}
.fx-autocomplete-item-info { min-width: 0; flex: 1; }
.fx-autocomplete-item-name {
  font-weight: 600;
  color: var(--fx-text);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-autocomplete-item-meta {
  font-size: 0.75rem;
  color: var(--fx-text-3);
  margin-top: 0.15rem;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
}
.fx-autocomplete-item-players {
  font-size: 0.78rem;
  color: var(--fx-accent);
  font-weight: 600;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  flex-shrink: 0;
  margin-left: 0.85rem;
}

.fx-autocomplete-empty {
  padding: 1.25rem;
  text-align: center;
  color: var(--fx-text-3);
  font-size: 0.85rem;
}

/* ===== MOBILE ADJUSTMENTS FOR SERVERS LIST ===== */
@media (max-width: 768px) {
  .fx-server-card {
    grid-template-columns: 44px 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }
  .fx-server-rank { width: 44px; height: 44px; font-size: 0.95rem; }
  .fx-server-players-block,
  .fx-server-action {
    grid-column: 1 / -1;
    text-align: left;
  }
  .fx-server-players-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--fx-card-border);
    padding-top: 0.85rem;
    margin-top: 0.25rem;
  }
  .fx-server-players-num { font-size: 1.1rem; }
  .fx-server-players-label { margin: 0; }
  .fx-server-action { width: 100%; justify-content: center; }
  .fx-server-desc { white-space: normal; max-width: 100%; }
  .fx-servers-summary { flex-direction: column; align-items: flex-start; }
  .fx-servers-filters { width: 100%; }
  .fx-filter-group { flex: 1; min-width: 0; }
  .fx-select { width: 100%; }
}
