﻿:root {
  --bg-canvas: #050508;
  --bg-card: rgba(14, 12, 22, 0.65);
  --bg-card-hover: rgba(22, 17, 36, 0.85);
  --bg-elevated: rgba(26, 20, 42, 0.7);

  --purple-primary: #a855f7;
  --purple-light: #c084fc;
  --purple-vibrant: #9333ea;
  --purple-deep: #6b21a8;
  --purple-glow: rgba(168, 85, 247, 0.18);
  --purple-border: rgba(168, 85, 247, 0.25);
  --purple-border-hover: rgba(192, 132, 252, 0.6);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --text-white: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  width: 100%;
  height: 100%;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(168, 85, 247, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
  background-size: clamp(32px, 5vw, 48px) clamp(32px, 5vw, 48px);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, black 20%, transparent 85%);
}

.glow-spot-top {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 550px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.16) 0%, rgba(107, 33, 168, 0.06) 45%, transparent 70%);
  filter: blur(80px);
}

.glow-spot-bottom {
  position: absolute;
  bottom: -100px;
  right: -50px;
  width: min(700px, 100vw);
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.09) 0%, transparent 70%);
  filter: blur(90px);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px) clamp(40px, 8vw, 80px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(14px, 3vw, 22px) 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 5, 8, 0.78);
  margin-bottom: clamp(16px, 4vw, 24px);
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-white);
  flex-shrink: 0;
}

.brand-symbol {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(192, 132, 252, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.5vw, 1.3rem);
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--purple-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--purple-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--purple-light);
  animation: pulse-glow 2.2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 10px);
  list-style: none;
  flex-wrap: wrap;
}

.nav-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: clamp(0.8rem, 1.8vw, 0.88rem);
  font-weight: 500;
  padding: clamp(6px, 1.5vw, 8px) clamp(10px, 2vw, 14px);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

.nav-btn.active {
  color: var(--purple-light);
  background: rgba(168, 85, 247, 0.12);
  border-color: var(--purple-border);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.nav-btn.primary {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.nav-btn.primary:hover {
  background: var(--purple-primary);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
  transform: translateY(-1px);
}

.hero {
  text-align: center;
  padding: clamp(24px, 5vw, 44px) 0 clamp(20px, 4vw, 32px);
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid var(--purple-border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.6vw, 0.78rem);
  color: var(--purple-light);
  margin-bottom: clamp(14px, 3vw, 20px);
  box-shadow: inset 0 0 15px rgba(168, 85, 247, 0.08);
  letter-spacing: 0.04em;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: clamp(12px, 2.5vw, 18px);
  color: #ffffff;
}

.hero-heading span.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 80%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheading {
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto clamp(20px, 4vw, 28px);
  font-weight: 400;
  line-height: 1.6;
}

.telemetry-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 12px);
  margin-bottom: clamp(24px, 4vw, 36px);
}

.telemetry-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 12, 22, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 1.8vw, 0.8rem);
  color: var(--text-dim);
}

.telemetry-tag .val {
  color: var(--text-white);
  font-weight: 600;
}

.telemetry-tag .purple-val {
  color: var(--purple-light);
  font-weight: 600;
}

/* Search Card */
.search-card {
  max-width: 780px;
  margin: 0 auto clamp(28px, 5vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
}

.input-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.input-group {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--purple-light);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input {
  width: 100%;
  background: rgba(9, 7, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  padding: 14px 16px 14px 44px;
  outline: none;
  transition: all 0.25s ease;
}

.search-input:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
  background: rgba(18, 14, 28, 0.95);
}

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

.lookup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.lookup-btn:hover {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
}

/* Loader */
.loader-box {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(168, 85, 247, 0.15);
  border-top-color: var(--purple-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

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

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--purple-light);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  margin-bottom: clamp(18px, 3vw, 24px);
  transition: all 0.3s ease;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
}

.card-header-flex {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.card-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--purple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.18);
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.server-title {
  word-break: break-word;
}

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

.info-box {
  background: rgba(9, 7, 16, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: all 0.2s ease;
}

.info-box:hover {
  border-color: var(--purple-border);
  background: rgba(18, 14, 28, 0.85);
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-val {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: #ffffff;
  font-weight: 600;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.info-val .purple-val {
  color: var(--purple-light);
}

.copy-mini-btn {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--purple-border);
  color: var(--purple-light);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-mini-btn:hover {
  background: var(--purple-primary);
  color: #ffffff;
}

/* Player Controls & List */
.player-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.player-search-input {
  flex: 1;
  min-width: 200px;
  background: rgba(9, 7, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 10px 14px;
  outline: none;
}

.player-search-input:focus {
  border-color: var(--purple-light);
}

.player-sort-select {
  background: rgba(9, 7, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 10px 14px;
  outline: none;
  cursor: pointer;
}

.player-sort-select:focus {
  border-color: var(--purple-light);
}

.player-sort-select option {
  background: #0d0b14;
  color: #ffffff;
}

.player-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.player-list-container::-webkit-scrollbar {
  width: 6px;
}

.player-list-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.player-list-container::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 3px;
}

.player-list-container::-webkit-scrollbar-thumb:hover {
  background: var(--purple-primary);
}

.player-item {
  background: rgba(9, 7, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.player-item:hover {
  border-color: var(--purple-border);
  background: rgba(22, 17, 36, 0.85);
}

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

.player-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(124, 58, 237, 0.4));
  border: 1px solid var(--purple-border);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-id-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

.ping-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.no-players {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
  transition: all 0.2s ease;
  margin-top: 10px;
}

.pdf-btn:hover {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}

.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0d0b14;
  border: 1px solid var(--purple-primary);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 2vw, 0.84rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 48px);
}

.toast-box.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-box.error {
  border-color: #ef4444;
}

.toast-box.error svg {
  stroke: #ef4444;
}

.toast-box.warning {
  border-color: #f59e0b;
}

.toast-box.warning svg {
  stroke: #f59e0b;
}

footer {
  text-align: center;
  padding: clamp(30px, 6vw, 50px) 0 20px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    justify-content: flex-start;
  }

  .nav-menu {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 6px;
  }

  .nav-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 6px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 20px 0 24px;
  }

  .input-wrapper {
    flex-direction: column;
  }

  .lookup-btn {
    width: 100%;
  }
}
