/* Genel sayfa ayarları ve koyu tema arka planı */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2933 0, #050816 55%, #02010a 100%);
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 16px;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
  background: rgba(30, 41, 59, 0.95);
}

.theme-toggle:active {
  transform: scale(0.95) rotate(15deg);
}

body.light-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(148, 163, 184, 0.4);
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.2);
  transform: scale(1.1) rotate(15deg);
}

body.light-mode .theme-toggle:active {
  transform: scale(0.95) rotate(15deg);
}

.app {
  width: 100%;
  max-width: 960px;
  margin: auto;
}

/* Players sayfası yerleşimi: tek kolon ve daha geniş kapsayıcı */
.players-page .app-main {
  grid-template-columns: 1fr;
}

.players-page .app {
  max-width: 1600px;
}

/* Başlık alanı */
.app-header {
  margin-bottom: 24px;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.logo-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle, #4ade80 0, #22c55e 40%, #16a34a 100%);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.header-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.3));
}

.logo-dot.logo-dot--error {
  background: radial-gradient(circle, #fca5a5 0, #ef4444 40%, #b91c1c 100%);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.8);
}

.logo-dot.logo-dot--pending {
  background: radial-gradient(circle, #93c5fd 0, #3b82f6 40%, #1d4ed8 100%);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.8);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.app-header h1 {
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.server-badge {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: badgeSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  white-space: nowrap;
  margin-left: 4px;
}

.server-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px white;
}

@keyframes badgeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.light-mode .server-badge {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.subtitle {
  color: #9ca3af;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

body.light-mode .subtitle {
  color: #64748b;
}

/* Discord Promo Link */
.discord-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(88, 101, 242, 0.05));
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 12px;
  color: #5865F2;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  animation: promoSlideDown 0.6s ease-out;
}

.discord-promo:hover {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.discord-promo .promo-icon {
  font-size: 1.1rem;
  animation: promoBounce 2s infinite;
}

@keyframes promoBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes promoSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.light-mode .discord-promo {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.2);
}

body.light-mode .discord-promo:hover {
  background: #5865F2;
  color: white;
}

/* Site Statistics Widget */
.site-stats {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: statsSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s ease;
}

.site-stats:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: rgba(30, 41, 59, 0.9);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

.stat-value {
  color: #e5e7eb;
  font-weight: 700;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.95rem;
  min-width: 45px;
  text-align: right;
}

.stat-icon {
  font-size: 1.1rem;
  width: 20px;
  display: flex;
  justify-content: center;
}

.stat-label {
  flex: 1;
}

@keyframes statsSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.light-mode .site-stats {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(203, 213, 225, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

body.light-mode .stat-item {
  color: #64748b;
}

body.light-mode .stat-value {
  color: #0f172a;
}

body.light-mode .site-stats:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(249, 115, 22, 0.4);
}

/* Ana içerik yerleşimi */
.app-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.main-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.tab-button {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tab-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.tab-button:hover::before {
  width: 300px;
  height: 300px;
}

.tab-button:hover {
  background: rgba(30, 64, 175, 0.55);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.5);
  transform: translateY(-2px);
}

.tab-button.is-active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #f9fafb;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.7);
  transform: translateY(-1px);
  animation: activeTab 0.3s ease;
}

@keyframes activeTab {
  0% {
    transform: scale(0.95);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: translateY(-1px);
  }
}

.tab-panel {
  display: none;
}

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

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.server-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.92) 0, rgba(2, 6, 23, 0.92) 70%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.server-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.server-card:hover::after {
  left: 100%;
}

.server-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.server-card__desc {
  font-size: 0.85rem;
  color: #9ca3af;
}

.server-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.35);
}

.server-card:active {
  transform: translateY(-2px) scale(1.01);
}

.server-card--mdrp {
  background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.35), rgba(124, 58, 237, 0.35));
}

.server-card--well {
  background-image: linear-gradient(135deg, rgba(22, 163, 74, 0.35), rgba(34, 197, 94, 0.35));
}

.server-card--guid {
  background-image: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(245, 158, 11, 0.35));
}

/* Kart bileşenleri */
.card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 14px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(18px);
  transition: all 0.3s ease;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.card-description {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 16px;
}

/* Arama formu */
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.input {
  flex: 1;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input::placeholder {
  color: #6b7280;
  transition: opacity 0.2s ease;
}

.input:focus::placeholder {
  opacity: 0.5;
}

.input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 4px 12px rgba(99, 102, 241, 0.15);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.2);
  pointer-events: none;
}

/* Buton bileşenleri */
.button {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.button.primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.5);
  position: relative;
  overflow: hidden;
}

.button.primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.button.primary:hover::before {
  width: 300px;
  height: 300px;
}

.button.primary:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(79, 70, 229, 0.6);
}

.button.primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.button.secondary {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.button.secondary:hover {
  background: rgba(30, 64, 175, 0.4);
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.button.tiny {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* Küçük ikon buton (modal kapatma için) */
.icon-button {
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #9ca3af;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.08s ease;
}

.icon-button:hover {
  background: rgba(31, 41, 55, 0.95);
  color: #e5e7eb;
}

.icon-button:active {
  transform: translateY(1px);
}

/* Mesaj alanları (hata, uyarı, bilgi) */
.message {
  min-height: 18px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: #9ca3af;
}

.message--error {
  color: #fecaca;
  animation: shake 0.5s ease;
}

.message--success {
  color: #bbf7d0;
  animation: successPulse 0.5s ease;
}

.message--info {
  color: #93c5fd;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

@keyframes successPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Bulunan oyuncu sonucu kartı */
.player-result {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.95) 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  min-width: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInCard 0.3s ease-out;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.player-card:hover::before {
  opacity: 1;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.player-card:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.1);
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
}

/* Players sayfasında filtre formunu sol üstte hizala */
.players-page .search-form {
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

.players-page .search-form .input {
  flex: 1 1 240px;
}

.players-page .search-form .button {
  flex: 0 0 auto;
  min-width: 120px;
}

/* Players sayfasında oyuncu kartlarını dikey hizala, butonu daha rahat göster */
.players-page .players-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.players-page .player-card {
  flex-direction: column;
  align-items: flex-start;
}

.players-page .player-card .button {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
}

.player-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.player-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.3;
  word-break: break-word;
}

.player-id {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hidden {
  display: none !important;
}

/* Sunucu durumu kartı stilleri */
.status-card {
  align-self: flex-start;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(191, 219, 254, 0.3);
  border-top-color: #bfdbfe;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

.status-pill--pending {
  background: rgba(30, 64, 175, 0.3);
  color: #bfdbfe;
  position: relative;
  overflow: hidden;
}

.status-pill--pending::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.status-pill--ok {
  background: rgba(22, 163, 74, 0.25);
  color: #bbf7d0;
  animation: successGlow 2s ease-in-out infinite;
}

@keyframes successGlow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(22, 163, 74, 0.3);
  }

  50% {
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.5);
  }
}

.status-pill--error {
  background: rgba(220, 38, 38, 0.25);
  color: #fecaca;
  animation: errorPulse 1.5s ease-in-out infinite;
}

@keyframes errorPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.status-detail {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Modal kaplaması ve içerik alanı */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  animation: backdropFadeIn 0.2s ease-out;
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal.hidden .modal-backdrop {
  animation: backdropFadeOut 0.2s ease-in;
}

@keyframes backdropFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: radial-gradient(circle at top, #020617 0, #02010a 65%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
  padding: 16px 18px 14px;
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal.hidden .modal-content {
  animation: modalSlideOut 0.2s ease-in;
}

@keyframes modalSlideOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  to {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
}

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

.modal-title {
  font-size: 1.1rem;
}

.modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 2px;
}

.modal-section {
  padding: 10px 0;
}

.modal-section+.modal-section {
  border-top: 1px dashed rgba(55, 65, 81, 0.6);
}

.modal-section-title {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.info-label {
  color: #9ca3af;
}

.info-value {
  font-weight: 500;
}

.identifier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.identifier-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.85rem;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.8);
  word-break: break-all;
  transition: all 0.2s ease;
  animation: identifierFadeIn 0.3s ease-out;
  animation-fill-mode: both;
}

.identifier-text {
  flex: 1;
}

.identifier-copy {
  border: 1px solid rgba(55, 65, 81, 0.7);
  background: rgba(15, 23, 42, 0.85);
  color: #9ca3af;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease;
}

.identifier-copy:hover {
  background: rgba(31, 41, 55, 0.95);
  color: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.identifier-copy:active {
  transform: translateY(0);
  box-shadow: none;
}

.identifier-list li:nth-child(1) {
  animation-delay: 0.05s;
}

.identifier-list li:nth-child(2) {
  animation-delay: 0.1s;
}

.identifier-list li:nth-child(3) {
  animation-delay: 0.15s;
}

.identifier-list li:nth-child(4) {
  animation-delay: 0.2s;
}

.identifier-list li:nth-child(5) {
  animation-delay: 0.25s;
}

.identifier-list li:nth-child(n+6) {
  animation-delay: 0.3s;
}

@keyframes identifierFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.identifier-list li:hover {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(15, 23, 42, 1);
  transform: translateX(4px);
}

.empty-text {
  font-size: 0.85rem;
  color: #9ca3af;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Responsive tasarım kırılımı */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .theme-toggle {
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .app-header h1 {
    font-size: 1.4rem;
  }

  .app-main {
    grid-template-columns: 1fr;
  }

  .server-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    gap: 6px;
  }

  .search-form {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .player-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .players-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .players-page .players-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-content {
    margin: 0 8px;
  }
}

/* Daha fazla kırılım ile responsive sütun sayısı */
@media (max-width: 1280px) {
  .players-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .players-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .players-page .players-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .players-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .players-page .players-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .players-page .players-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .viqole-watermark {
    font-size: 1.8rem;
    bottom: 10px;
    right: 15px;
    opacity: 0.13;
  }

  .viqole-modal-watermark {
    font-size: 2.2rem;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #e5e7eb;
}

body.light-mode ::selection {
  background: rgba(249, 115, 22, 0.2);
  color: #1e293b;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

body.light-mode *:focus-visible {
  outline: 2px solid #f97316;
}

/* Improved card transitions */
.tab-panel {
  animation: fadeInPanel 0.3s ease-out;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Light Mode Styles */
body.light-mode {
  background: radial-gradient(circle at top, #f8fafc 0, #f1f5f9 55%, #e2e8f0 100%);
  color: #0f172a;
}

body.light-mode .card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(203, 213, 225, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

body.light-mode .card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.15), 0 0 0 1px rgba(249, 115, 22, 0.05);
  transform: translateY(-2px);
}

body.light-mode .subtitle {
  color: #64748b;
}

body.light-mode .card-title {
  color: #0f172a;
}

body.light-mode .card-description {
  color: #64748b;
  transition: color 0.3s ease;
}

body.light-mode .input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(203, 213, 225, 0.6);
  color: #1e293b;
}

body.light-mode .input::placeholder {
  color: #94a3b8;
}

body.light-mode .input:focus {
  background: rgba(255, 255, 255, 1);
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15), 0 4px 12px rgba(249, 115, 22, 0.1);
  transform: translateY(-1px);
}

body.light-mode .input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background: rgba(241, 245, 249, 0.6);
  border-color: rgba(203, 213, 225, 0.3);
  pointer-events: none;
}

body.light-mode .button.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  border-color: rgba(203, 213, 225, 0.6);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .button.secondary:hover {
  background: rgba(241, 245, 249, 1);
  border-color: rgba(249, 115, 22, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

body.light-mode .button.primary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
  position: relative;
  overflow: hidden;
}

body.light-mode .button.primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

body.light-mode .button.primary:hover::before {
  width: 300px;
  height: 300px;
}

body.light-mode .button.primary:hover {
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.5);
}

body.light-mode .button.primary:active {
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}

body.light-mode .player-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-color: rgba(203, 213, 225, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

body.light-mode .player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #f97316, #fb923c);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.light-mode .player-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(241, 245, 249, 1) 100%);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15), 0 0 0 1px rgba(249, 115, 22, 0.08);
  transform: translateY(-4px);
}

body.light-mode .player-card:hover::before {
  opacity: 1;
}

body.light-mode .player-card::before {
  background: linear-gradient(90deg, #f59e0b, #f97316, #fb923c);
}

body.light-mode .player-name {
  color: #0f172a;
}

body.light-mode .player-id {
  color: #64748b;
}

body.light-mode .tab-button {
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  border-color: rgba(203, 213, 225, 0.6);
}

body.light-mode .tab-button:hover {
  background: rgba(241, 245, 249, 1);
}

body.light-mode .tab-button.is-active {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #f9fafb;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.5);
  border-color: transparent;
}

body.light-mode .tab-button::before {
  background: rgba(249, 115, 22, 0.1);
}

body.light-mode .tab-button:hover::before {
  width: 300px;
  height: 300px;
}

body.light-mode .tab-button:hover {
  background: rgba(255, 247, 237, 1);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
  transform: translateY(-2px);
}

body.light-mode .server-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-color: rgba(203, 213, 225, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .server-card::after {
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.15), transparent);
}

body.light-mode .server-card:hover::after {
  left: 100%;
}

body.light-mode .server-card:hover {
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.25), 0 0 0 1px rgba(249, 115, 22, 0.08);
  transform: translateY(-4px) scale(1.02);
}

body.light-mode .server-card:active {
  transform: translateY(-2px) scale(1.01);
}

body.light-mode .server-card__desc {
  color: #64748b;
}

body.light-mode .status-pill--pending {
  background: rgba(59, 130, 246, 0.15);
  color: #1e40af;
  position: relative;
  overflow: hidden;
}

body.light-mode .status-pill--pending::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  animation: shimmer 2s infinite;
}

body.light-mode .status-pill--ok {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
  animation: successGlowLight 2s ease-in-out infinite;
}

@keyframes successGlowLight {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.4);
  }

  50% {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
  }
}

body.light-mode .status-pill--error {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
  animation: errorPulseLight 1.5s ease-in-out infinite;
}

@keyframes errorPulseLight {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

body.light-mode .status-detail {
  color: #64748b;
}

body.light-mode .message--error {
  color: #dc2626;
  animation: shake 0.5s ease;
}

body.light-mode .message--success {
  color: #16a34a;
  animation: successPulse 0.5s ease;
}

body.light-mode .message--info {
  color: #2563eb;
  transition: opacity 0.3s ease;
}

body.light-mode .modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(203, 213, 225, 0.5);
  color: #1e293b;
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .modal-backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  animation: backdropFadeIn 0.2s ease-out;
}

body.light-mode .modal-section-title {
  color: #64748b;
}

body.light-mode .info-label {
  color: #64748b;
}

body.light-mode .info-value {
  color: #0f172a;
}

body.light-mode .identifier-list li {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(203, 213, 225, 0.6);
  color: #1e293b;
  transition: all 0.2s ease;
  animation: identifierFadeIn 0.3s ease-out;
  animation-fill-mode: both;
}

body.light-mode .identifier-list li:hover {
  background: rgba(241, 245, 249, 1);
  border-color: rgba(249, 115, 22, 0.5);
  transform: translateX(4px);
}

body.light-mode .identifier-copy {
  border-color: rgba(203, 213, 225, 0.8);
  background: rgba(248, 250, 252, 0.9);
  color: #64748b;
}

body.light-mode .identifier-copy:hover {
  background: rgba(241, 245, 249, 1);
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

body.light-mode .empty-text {
  color: #64748b;
}

body.light-mode .icon-button {
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
}

body.light-mode .icon-button:hover {
  background: rgba(241, 245, 249, 1);
  color: #1e293b;
}

/* Viqole Watermark Styles */
.viqole-watermark {
  position: fixed;
  bottom: 20px;
  right: 30px;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.23;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  animation: watermarkFadeIn 1s ease-out;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

@keyframes watermarkFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 0.08;
    transform: translateY(0);
  }
}

body.light-mode .viqole-watermark {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.13;
  text-shadow: 0 0 30px rgba(249, 115, 22, 0.2);
}

/* Viqole Modal Watermark */
.viqole-modal-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 60.20;
  pointer-events: none;
  user-select: none;
  animation: modalWatermarkFadeIn 0.5s ease-out 0.3s both;
  text-transform: uppercase;
  z-index: 10;
}

@keyframes modalWatermarkFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  to {
    opacity: 0.05;
    transform: translate(-50%, -50%) scale(1);
  }
}

body.light-mode .viqole-modal-watermark {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 60.20;
}

/* Modal content positioning */
.modal-content {
  position: relative;
}

/* Modal body positioning */
.modal-body {
  position: relative;
  z-index: 1;
}

/* Sunucu ismi renklendirme ve animasyonları */
.server-name-highlight {
  font-weight: bold;
  transition: color 0.3s ease;
}

.server-name-highlight--ok {
  color: #4ade80;
  /* Yeşil */
}

.server-name-highlight--pending {
  color: #60a5fa;
  /* Mavi */
  animation: bluePulse 1.5s ease-in-out infinite;
}

@keyframes bluePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

/* Takip Listesi Özel Stilleri */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
}

.status-dot--online {
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.status-dot--offline {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.player-card__header {
  display: flex;
  align-items: center;
  width: 100%;
}

.player-card__actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.button--remove {
  background: rgba(220, 38, 38, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.button--remove:hover {
  background: rgba(220, 38, 38, 0.25);
  border-color: #ef4444;
  color: #fee2e2;
}

body.light-mode .button--remove {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.2);
}

body.light-mode .button--remove:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #dc2626;
}

/* Tracking CTA (Ana Sayfa Butonu) */
.tracking-cta-container {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.tracking-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tracking-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.6s ease;
}

.tracking-cta:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(139, 92, 246, 0.15));
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.2);
}

.tracking-cta:hover::before {
  left: 100%;
}

.tracking-cta__content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tracking-cta__icon {
  font-size: 2rem;
  background: rgba(99, 102, 241, 0.2);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
}

.tracking-cta__text h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  background: linear-gradient(to right, #e5e7eb, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tracking-cta__text p {
  font-size: 0.9rem;
  color: #94a3b8;
}

.tracking-cta__arrow {
  font-size: 1.5rem;
  color: #6366f1;
  transition: transform 0.3s ease;
}

.tracking-cta:hover .tracking-cta__arrow {
  transform: translateX(8px);
}

/* Light Mode CTA */
body.light-mode .tracking-cta {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(251, 146, 60, 0.05));
  border-color: rgba(249, 115, 22, 0.2);
}

body.light-mode .tracking-cta:hover {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.1));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.1);
}

body.light-mode .tracking-cta__text h3 {
  background: linear-gradient(to right, #1e293b, #475569);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .tracking-cta__icon {
  background: rgba(249, 115, 22, 0.1);
}

body.light-mode .tracking-cta__arrow {
  color: #f97316;
}

/* Follow Page Specific */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.back-button:hover {
  color: #6366f1;
  transform: translateX(-4px);
}

body.light-mode .back-button:hover {
  color: #f97316;
}

.server-info-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-weight: bold;
  margin-top: 4px;
  display: inline-block;
}

body.light-mode .server-info-badge {
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
}

.no-server-badge {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.follow-page .app {
  max-width: 800px;
}

.follow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

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