/* =====================================================
   POYCORD — Global Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Colors — derin indigo/violet tema */
  --bg-base:       hsl(240, 24%, 5%);
  --bg-surface:    hsl(240, 22%, 7%);
  --bg-elevated:   hsl(240, 19%, 10%);
  --bg-card:       hsl(240, 19%, 12%);
  --bg-hover:      hsl(240, 17%, 16%);

  --border:        hsl(240, 16%, 17%);
  --border-light:  hsl(240, 16%, 25%);

  --text-primary:   hsl(0, 0%, 98%);
  --text-secondary: hsl(240, 13%, 70%);
  --text-muted:     hsl(240, 11%, 48%);

  /* Accent Gradients */
  --accent-purple:  hsl(263, 90%, 66%);
  --accent-indigo:  hsl(244, 86%, 65%);
  --accent-blue:    hsl(217, 92%, 62%);
  --accent-cyan:    hsl(190, 95%, 55%);
  --accent-green:   hsl(150, 72%, 48%);
  --accent-orange:  hsl(27, 96%, 58%);
  --accent-red:     hsl(0, 80%, 62%);
  --accent-gold:    hsl(45, 95%, 58%);
  --accent-pink:    hsl(328, 85%, 64%);

  --grad-primary:   linear-gradient(135deg, hsl(265,90%,64%) 0%, hsl(244,86%,63%) 50%, hsl(214,92%,58%) 100%);
  --grad-hero:      linear-gradient(120deg, hsl(265,95%,72%), hsl(220,95%,68%) 55%, hsl(190,95%,62%));
  --grad-card:      linear-gradient(160deg, rgba(124,92,246,.10), rgba(59,130,246,.03));
  --grad-glow:      radial-gradient(ellipse at center, rgba(124,92,246,.18) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.45);
  --shadow-md:   0 6px 18px rgba(0,0,0,.55);
  --shadow-lg:   0 16px 50px rgba(0,0,0,.65);
  --shadow-glow: 0 0 40px rgba(124,92,246,.32);

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Transitions */
  --ease-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:   0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Sidebar */
  --sidebar-width: 240px;
  --header-height: 60px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; }
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Glassmorphism Card ---- */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--ease-fast), transform var(--ease-fast), box-shadow var(--ease-fast);
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--ease-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 0 20px rgba(139,92,246,.35);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,.15), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity var(--ease-fast);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(139,92,246,.5); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-light); }

.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); }

.btn-danger {
  background: rgba(239,68,68,.15);
  color: hsl(0,90%,65%);
  border: 1px solid rgba(239,68,68,.25);
}
.btn-danger:hover { background: rgba(239,68,68,.25); border-color: rgba(239,68,68,.4); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-icon { padding: 8px; border-radius: var(--radius-md); aspect-ratio: 1; justify-content: center; }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-purple  { background: rgba(139,92,246,.15); color: hsl(262,83%,75%); border: 1px solid rgba(139,92,246,.25); }
.badge-blue    { background: rgba(59,130,246,.15);  color: hsl(217,91%,75%); border: 1px solid rgba(59,130,246,.25); }
.badge-green   { background: rgba(34,197,94,.12);   color: hsl(142,70%,60%); border: 1px solid rgba(34,197,94,.2); }
.badge-orange  { background: rgba(249,115,22,.12);  color: hsl(27,95%,65%);  border: 1px solid rgba(249,115,22,.2); }
.badge-red     { background: rgba(239,68,68,.12);   color: hsl(0,75%,65%);   border: 1px solid rgba(239,68,68,.2); }
.badge-gold    { background: rgba(234,179,8,.12);   color: hsl(45,90%,65%);  border: 1px solid rgba(234,179,8,.2); }
.badge-gray    { background: rgba(148,163,184,.1);  color: var(--text-secondary); border: 1px solid var(--border); }
.badge-pink    { background: rgba(236,72,153,.12);  color: hsl(330,80%,72%); border: 1px solid rgba(236,72,153,.2); }

/* ---- Status Dot ---- */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-online  { background: hsl(142,70%,45%); box-shadow: 0 0 6px hsl(142,70%,45%); }
.status-idle    { background: hsl(45,90%,55%);  box-shadow: 0 0 6px hsl(45,90%,55%); }
.status-dnd     { background: hsl(0,75%,55%);   box-shadow: 0 0 6px hsl(0,75%,55%); }
.status-offline { background: var(--text-muted); }

/* ---- Input ---- */
.input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  width: 100%;
  outline: none;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(139,92,246,.15); }

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--border);
}
.tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--ease-fast);
  white-space: nowrap;
}
.tab:hover { color: var(--text-secondary); background: var(--bg-hover); }
.tab.active { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }

.tabs-scroll {
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-scroll::-webkit-scrollbar { display: none; }

/* ---- Avatar ---- */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-sm  { width: 32px; height: 32px; }
.avatar-md  { width: 44px; height: 44px; }
.avatar-lg  { width: 64px; height: 64px; }
.avatar-xl  { width: 96px; height: 96px; }
.avatar-xxl { width: 120px; height: 120px; border: 4px solid var(--bg-card); }

.avatar-server { border-radius: var(--radius-md); }

/* ---- Progress Bar ---- */
.progress { background: var(--bg-elevated); border-radius: var(--radius-full); height: 6px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: var(--radius-full); background: var(--grad-primary); transition: width 1s ease; }

/* ---- Stat Card ---- */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stat-value { font-size: 24px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--ease-fast); }
tbody tr:hover { background: var(--bg-elevated); }

/* ---- Rank Badge ---- */
.rank { 
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.rank-1 { background: rgba(234,179,8,.2); color: hsl(45,90%,55%); }
.rank-2 { background: rgba(148,163,184,.15); color: hsl(225,10%,75%); }
.rank-3 { background: rgba(249,115,22,.15); color: hsl(27,95%,60%); }

/* ---- Skeleton Loader ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ---- Glow Orbs ---- */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.glow-orb-1 { width: 600px; height: 600px; background: var(--accent-purple); top: -200px; left: -200px; }
.glow-orb-2 { width: 500px; height: 500px; background: var(--accent-blue); bottom: -200px; right: -100px; }

/* ---- Toast ---- */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 9999;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease;
  min-width: 280px;
}
.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error   { border-left: 3px solid var(--accent-red); }
.toast.info    { border-left: 3px solid var(--accent-blue); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- Divider ---- */
.divider { height: 1px; background: var(--border); margin: var(--space-6) 0; }
.divider-label {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--text-muted); font-size: 12px; font-weight: 500;
}
.divider-label::before, .divider-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ---- Grid Helpers ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }

/* ---- Flex Helpers ---- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* ---- Animations ---- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in { animation: fadeIn .3s ease forwards; }
.animate-fade-in-scale { animation: fadeInScale .3s ease forwards; }

/* ---- Activity Heatmap ---- */
.heatmap {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
}
.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--bg-elevated);
  transition: transform var(--ease-fast);
}
.heatmap-cell:hover { transform: scale(1.3); }
.heatmap-cell[data-level="1"] { background: rgba(139,92,246,.25); }
.heatmap-cell[data-level="2"] { background: rgba(139,92,246,.45); }
.heatmap-cell[data-level="3"] { background: rgba(139,92,246,.65); }
.heatmap-cell[data-level="4"] { background: rgba(139,92,246,.85); }
.heatmap-cell[data-level="5"] { background: hsl(262,83%,58%); }

/* ---- Chart Bars ---- */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
}
.chart-bar-item {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--grad-primary);
  opacity: .7;
  transition: opacity var(--ease-fast), height var(--ease-slow);
  min-height: 4px;
}
.chart-bar-item:hover { opacity: 1; }

/* ---- Empty State ---- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-12);
  text-align: center;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; opacity: .5; }
.empty-state h3 { font-size: 16px; color: var(--text-secondary); }

/* ---- Tooltip ---- */
[data-tooltip] { position: relative; cursor: default; }
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  :root { --sidebar-width: 0px; }
}

/* =====================================================
   REDESIGN v2 — findcord ilhamı, daha derin & parlak
   ===================================================== */

/* Arka plana katmanlı derinlik */
body {
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(124,92,246,.12), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(59,130,246,.10), transparent 55%),
    radial-gradient(700px 500px at 50% 120%, rgba(168,85,247,.06), transparent 60%),
    var(--bg-base);
  background-attachment: fixed;
}

/* Glow orb'lar biraz daha belirgin */
.glow-orb { opacity: .10; filter: blur(90px); }

/* Başlıklar daha sıkı */
.hero-title { letter-spacing: -0.02em; }
.text-gradient { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Kartlar: ince ışıklı kenar + hover glow */
.card, .stat-box, .feature-card, .user-profile-hero, .server-profile-hero,
.profile-tabs-wrap {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.01)) border-box;
  border: 1px solid transparent;
}
.card:hover, .feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(124,92,246,.18), 0 0 28px rgba(124,92,246,.10);
}

/* Stat kutuları: üst parıltı çizgisi + hover */
.stat-box {
  transition: transform var(--ease-fast), box-shadow var(--ease-fast);
}
.stat-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: .6;
}
.stat-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), 0 0 24px rgba(124,92,246,.12); }
.stat-box-value { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Leaderboard satırları: gradyanlı hover + sol vurgu */
.leaderboard-row {
  position: relative;
  overflow: hidden;
}
.leaderboard-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--ease-fast);
}
.leaderboard-row:hover {
  border-color: transparent;
  background: linear-gradient(90deg, rgba(124,92,246,.10), var(--bg-elevated) 40%);
  box-shadow: 0 0 0 1px rgba(124,92,246,.18);
  transform: translateX(3px);
}
.leaderboard-row:hover::before { opacity: 1; }

/* Birincilik rozetleri parlasın */
.leaderboard-rank { font-size: 15px; }

/* Buton: daha canlı */
.btn-primary { box-shadow: 0 4px 16px rgba(124,92,246,.40), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { box-shadow: 0 6px 28px rgba(124,92,246,.55), inset 0 1px 0 rgba(255,255,255,.22); }

/* Sidebar aktif öğe: gradyan zemin */
.nav-item.active {
  background: linear-gradient(90deg, rgba(124,92,246,.18), rgba(124,92,246,.04));
  color: #fff;
}
.nav-item.active::before { width: 3px; box-shadow: 0 0 10px rgba(124,92,246,.7); }

/* Topbar yeni zemine uyum */
.topbar {
  background: hsla(240, 24%, 6%, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Profil sekmesi aktif: alt çizgi gradyanı */
.profile-tab.active { border-bottom-color: transparent; color: #fff; }
.profile-tab.active::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}
.profile-tab { position: relative; }

/* Hero arama kutusu odakta parlasın */
.hero-search-box:focus-within { box-shadow: 0 0 0 4px rgba(124,92,246,.12), 0 0 30px rgba(124,92,246,.12); }

/* Avatar halka parlaması (profil) */
.profile-avatar { box-shadow: 0 0 0 5px var(--bg-card), 0 0 24px rgba(124,92,246,.25); }

/* Profil banner varsayılanı daha zengin */
.profile-banner { background: var(--grad-primary); }
.server-banner  { background: linear-gradient(135deg, hsl(258,55%,22%), hsl(220,60%,24%)); }

/* =====================================================
   ANIMATIONS v3 — 21st.dev ilhamı (hareketli gradyan,
   spotlight hover, gradient border, staggered giriş)
   ===================================================== */

/* Hareketli gradyan metinler/logolar/değerler */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.text-gradient, .sidebar-logo h2, .login-logo h1, .stat-box-value {
  background-size: 220% 220%;
  animation: gradientShift 7s ease infinite;
}

/* Primary buton: kayan parıltı + canlı gradyan */
.btn-primary, .login-btn {
  background-size: 180% 180%;
  animation: gradientShift 6s ease infinite;
}

/* Staggered giriş — sayfa aktifleşince kartlar/satırlar yumuşak belirir */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.page.active .stats-grid > *,
.page.active .features-section .grid-3 > *,
.page.active .leaderboard-row,
.page.active .card,
.page.active .user-profile-hero,
.page.active .server-profile-hero,
.page.active .profile-tabs-wrap {
  animation: fadeUp .55s cubic-bezier(.22,1,.36,1) backwards;
}
.page.active .stats-grid > *:nth-child(1){animation-delay:.02s}
.page.active .stats-grid > *:nth-child(2){animation-delay:.07s}
.page.active .stats-grid > *:nth-child(3){animation-delay:.12s}
.page.active .stats-grid > *:nth-child(4){animation-delay:.17s}
.page.active .grid-3 > *:nth-child(2){animation-delay:.06s}
.page.active .grid-3 > *:nth-child(3){animation-delay:.10s}
.page.active .grid-3 > *:nth-child(4){animation-delay:.14s}
.page.active .grid-3 > *:nth-child(5){animation-delay:.18s}
.page.active .grid-3 > *:nth-child(6){animation-delay:.22s}
.page.active .leaderboard-row:nth-child(2){animation-delay:.03s}
.page.active .leaderboard-row:nth-child(3){animation-delay:.06s}
.page.active .leaderboard-row:nth-child(4){animation-delay:.09s}
.page.active .leaderboard-row:nth-child(5){animation-delay:.12s}
.page.active .leaderboard-row:nth-child(6){animation-delay:.15s}
.page.active .leaderboard-row:nth-child(7){animation-delay:.18s}
.page.active .leaderboard-row:nth-child(8){animation-delay:.21s}

/* Spotlight hover — imleci takip eden ışık (JS --mx/--my besler) */
.feature-card, .stat-box, .card { --mx: 50%; --my: 50%; }
.feature-card::before, .card.glow-spot::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(139,92,246,.16), transparent 45%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.feature-card { position: relative; overflow: hidden; }
.feature-card:hover::before, .card.glow-spot:hover::before { opacity: 1; }

/* Hareketli gradyan kenar (stat & feature kartları) */
@keyframes borderSpin { to { transform: rotate(360deg); } }
.stat-box { isolation: isolate; }
.stat-box:hover {
  border-color: transparent;
}
.feature-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(139,92,246,.25), 0 0 30px rgba(139,92,246,.12); }

/* Logo ikonu nazik nabız */
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 12px rgba(124,92,246,.35); } 50% { box-shadow: 0 0 22px rgba(124,92,246,.6); } }
.sidebar-logo-icon { animation: glowPulse 3.5s ease-in-out infinite; }

/* Nav item hover: kaydır */
.nav-item { transition: all var(--ease-fast), transform var(--ease-fast); }
.nav-item:hover { transform: translateX(2px); }

/* Avatar hover: hafif büyüme */
.leaderboard-row img, .search-result-item img { transition: transform var(--ease-fast); }
.leaderboard-row:hover img { transform: scale(1.08); }

/* Chart bar giriş animasyonu */
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.profile-tab-pane.active .chart-bar-item { transform-origin: bottom; animation: barGrow .6s cubic-bezier(.22,1,.36,1) backwards; }

/* Reduced motion saygısı */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
