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

:root {
  --bg-primary: #0d0f1a;
  --bg-secondary: #13162a;
  --bg-card: #1a1d35;
  --bg-card-hover: #1e2240;
  --accent: #7c3aed;
  --accent2: #a855f7;
  --accent-glow: rgba(124,58,237,0.3);
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --blue: #3b82f6;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: rgba(124,58,237,0.2);
  --border-light: rgba(255,255,255,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,15,26,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 0 15px var(--accent-glow); }
.nav-logo span { font-size: 1.4rem; font-weight: 800; font-family: 'Orbitron', sans-serif; background: linear-gradient(135deg, #a78bfa, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-logo span em { font-style: normal; color: var(--gold); -webkit-text-fill-color: var(--gold); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* User Dropdown */
.user-menu-wrapper { position: relative; }
.user-avatar-btn { display: flex; align-items: center; gap: 0.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50px; padding: 0.35rem 0.85rem 0.35rem 0.5rem; cursor: pointer; transition: all 0.2s; color: var(--text-primary); font-size: 0.875rem; font-weight: 600; font-family: inherit; }
.user-avatar-btn:hover { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.user-avatar-icon { width: 30px; height: 30px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.user-display-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-badge { background: linear-gradient(135deg, var(--gold), #f97316); color: #000; font-size: 0.6rem; font-weight: 800; padding: 0.15rem 0.4rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.chevron { color: var(--text-secondary); font-size: 0.7rem; transition: transform 0.2s; }
.user-avatar-btn:has(+ .user-dropdown.open) .chevron { transform: rotate(180deg); }
.user-dropdown { position: absolute; top: calc(100% + 0.75rem); right: 0; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; padding: 0.5rem; min-width: 220px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); z-index: 999; display: none; animation: dropdownIn 0.2s ease; }
.user-dropdown.open { display: block; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.75rem 0.5rem; }
.dropdown-avatar { width: 42px; height: 42px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.dropdown-username { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.dropdown-email { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.1rem; }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 0.4rem 0; }
.dropdown-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 10px; font-size: 0.875rem; color: var(--text-secondary); transition: all 0.15s; cursor: pointer; text-decoration: none; }
.dropdown-item:hover { background: var(--bg-card); color: var(--text-primary); }
.admin-item { color: var(--gold) !important; }
.admin-item:hover { background: rgba(245,158,11,0.1) !important; }
.logout-item:hover { background: rgba(239,68,68,0.1) !important; color: #f87171 !important; }

.nav-menu { display: flex; align-items: center; gap: 0.3rem; }
.nav-menu a { padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: all 0.2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--text-primary); background: var(--border); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn { padding: 0.5rem 1.25rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-light); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--accent); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #6d28d9); color: #fff; box-shadow: 0 0 20px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 30px var(--accent-glow); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #d97706); color: #000; font-weight: 700; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(245,158,11,0.4); }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent2); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-green { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 0 15px rgba(16,185,129,0.4); }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0d0f1a 0%, #1a0a3d 50%, #0d1a2a 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.2) 0%, transparent 70%);
}
/* Animated orb */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; animation: orbFloat 8s ease-in-out infinite; }
.hero-orb-1 { width: 400px; height: 400px; background: rgba(124,58,237,0.12); top: -100px; left: 10%; animation-delay: 0s; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(236,72,153,0.08); top: 50px; right: 10%; animation-delay: -3s; }
.hero-orb-3 { width: 250px; height: 250px; background: rgba(245,158,11,0.06); bottom: -50px; left: 40%; animation-delay: -6s; }
@keyframes orbFloat { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-30px) scale(1.05)} }
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle { position: absolute; width: 2px; height: 2px; background: var(--accent2); border-radius: 50%; animation: float linear infinite; }
@keyframes float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(124,58,237,0.15); border: 1px solid var(--border); border-radius: 100px; padding: 0.4rem 1rem; font-size: 0.8rem; color: var(--accent2); margin-bottom: 1.5rem; }
.hero-badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 .gradient-text { background: linear-gradient(135deg, #a78bfa, #7c3aed, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--accent2); }
.hero-stat .label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* MAIN LAYOUT - Standart 2 Kolon */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.main-layout { display: grid; grid-template-columns: 1fr 290px; gap: 1.5rem; padding: 2rem 0; }
.left-col  { min-width: 0; }
.sidebar   { min-width: 0; }

/* =============================================
   VIEWPORT KENAR BANNERLARı (m2pvpserverler stili)
   Sayfanın sol ve sağ kenarında fixed position,
   içerik grid'inin tamamen dışında
   ============================================= */
.vp-banner-left,
.vp-banner-right {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.vp-banner-left  { left: 0; }
.vp-banner-right { right: 0; }

/* Bannerlar varken pointer events aç */
.vp-banner-left.has-banner,
.vp-banner-right.has-banner { pointer-events: auto; }

/* SKY BANNER - Viewport kenar kartı */
.sky-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 1.75rem 1rem 1.5rem;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
  transition: filter 0.3s ease;
}
.sky-banner:hover { filter: brightness(1.08); }

/* Iç glow animasyonu */
.sky-banner::before {
  content: '';
  position: absolute;
  top: -20%; left: -20%;
  width: 140%; height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
  animation: bannerPulse 5s ease-in-out infinite alternate;
}
.sky-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
}
@keyframes bannerPulse { from { opacity: 0.4; } to { opacity: 1; } }

/* Banner bölümleri */
.sky-banner-top    { text-align: center; z-index: 1; width: 100%; }
.sky-banner-mid    { text-align: center; z-index: 1; width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; }
.sky-banner-bottom { text-align: center; z-index: 1; width: 100%; }

/* Tür rozeti (VIP/Premium) */
.sky-type-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.58rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem; border-radius: 5px;
  margin-bottom: 0.5rem;
}
/* İçerik */
.sky-banner-emoji  { font-size: 3rem; display: block; filter: drop-shadow(0 0 12px rgba(255,255,255,0.3)); }
.sky-banner-title  { font-size: 0.85rem; font-weight: 900; line-height: 1.2; word-break: break-word; }
.sky-banner-desc   { font-size: 0.68rem; line-height: 1.45; opacity: 0.82; }
.sky-banner-divider{ width: 60%; height: 1px; background: rgba(255,255,255,0.18); margin: 0.5rem auto; }
/* CTA butonu */
.sky-banner-cta {
  display: block; width: 100%;
  padding: 0.45rem 0.25rem; border-radius: 10px;
  font-size: 0.65rem; font-weight: 800;
  text-align: center; text-decoration: none;
  letter-spacing: 0.02em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.2s, transform 0.15s;
}
.sky-banner-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* PLACEHOLDER (reklam yokken) */
.sky-placeholder {
  width: 100%;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-right: 1px dashed rgba(124,58,237,0.12);
  text-align: center; padding: 1rem 0.5rem;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s;
  background: rgba(13,15,26,0.4);
}
.vp-banner-right .sky-placeholder {
  border-right: none;
  border-left: 1px dashed rgba(124,58,237,0.12);
}
.sky-placeholder:hover { background: rgba(124,58,237,0.06); }
.sky-placeholder .ph-icon  { font-size: 1.5rem; opacity: 0.3; margin-bottom: 0.5rem; }
.sky-placeholder .ph-title { font-size: 0.68rem; font-weight: 700; color: var(--text-secondary); opacity: 0.5; margin-bottom: 0.3rem; }
.sky-placeholder .ph-sub   { font-size: 0.6rem; color: var(--text-secondary); opacity: 0.4; line-height: 1.4; margin-bottom: 0.6rem; }
.sky-placeholder .ph-btn   { font-size: 0.62rem; font-weight: 700; color: var(--accent2); background: rgba(124,58,237,0.1); padding: 0.25rem 0.6rem; border-radius: 6px; opacity: 0.7; }


/* FILTERS */
.filters-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 1rem 1.5rem; margin-bottom: 1.5rem;
}
.filter-tabs { display: flex; gap: 0.4rem; }
.filter-tab { padding: 0.4rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500; cursor: pointer; border: 1px solid var(--border-light); background: transparent; color: var(--text-secondary); transition: all 0.2s; }
.filter-tab:hover, .filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-box { flex: 1; min-width: 200px; position: relative; }
.search-box input { width: 100%; background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: 10px; padding: 0.5rem 1rem 0.5rem 2.5rem; color: var(--text-primary); font-size: 0.9rem; outline: none; transition: border-color 0.2s; }
.search-box input:focus { border-color: var(--accent); }
.search-box .icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-secondary); font-size: 0.9rem; }
.sort-select { background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: 10px; padding: 0.5rem 1rem; color: var(--text-primary); font-size: 0.85rem; outline: none; cursor: pointer; }
.sort-select:focus { border-color: var(--accent); }

/* SERVER CARD */
.server-list { display: flex; flex-direction: column; gap: 1rem; }
.server-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 16px; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
  transition: all 0.25s; position: relative; overflow: hidden;
  cursor: pointer;
  animation: cardReveal 0.5s ease both;
}
@keyframes cardReveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.server-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--accent), var(--accent2)); border-radius: 4px 0 0 4px; opacity: 0; transition: opacity 0.25s; }
.server-card:hover { border-color: var(--border); background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.server-card:hover::before { opacity: 1; }
.server-card.featured { border-color: rgba(245,158,11,0.3); background: linear-gradient(135deg, rgba(245,158,11,0.05), var(--bg-card)); }
.server-card.featured::before { background: linear-gradient(180deg, var(--gold), #f97316); opacity: 1; }
.server-card.premium-card { border-color: rgba(245,158,11,0.4); box-shadow: 0 0 20px rgba(245,158,11,0.1); }

/* Premium Section */
.premium-section { margin-bottom: 2rem; }
.premium-section-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.premium-section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(245,158,11,0.3), transparent); }

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

/* Rating Stars */
.stars { display: flex; gap: 2px; }
.star { color: #374151; font-size: 0.8rem; }
.star.filled { color: var(--gold); }
.server-rating { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; }
.rating-val { font-size: 0.8rem; font-weight: 700; color: var(--gold); }
.rating-count { font-size: 0.75rem; color: var(--text-secondary); }

.server-rank { width: 40px; text-align: center; font-size: 1.2rem; font-weight: 800; color: var(--text-secondary); flex-shrink: 0; }
.server-rank.gold { color: var(--gold); }
.server-rank.silver { color: #94a3b8; }
.server-rank.bronze { color: #b45309; }

.server-logo { width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; overflow: hidden; background: var(--bg-secondary); border: 2px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.server-logo img { width: 100%; height: 100%; object-fit: cover; }

.server-info { flex: 1; min-width: 0; }
.server-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.server-desc { font-size: 0.85rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.6rem; }
.server-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag { padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.tag-pvp { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.tag-farm { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.tag-mid { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.tag-new { background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.2); }
.tag-veteran { background: rgba(245,158,11,0.15); color: var(--gold); border: 1px solid rgba(245,158,11,0.2); }

.server-rates { display: flex; flex-direction: column; gap: 0.4rem; min-width: 120px; }
.rate-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.8rem; }
.rate-label { color: var(--text-secondary); }
.rate-val { font-weight: 700; color: var(--accent2); }
.rate-val.high { color: var(--gold); }

.server-players { text-align: center; min-width: 90px; }
.players-count { font-size: 1.4rem; font-weight: 800; color: var(--green); }
.players-label { font-size: 0.7rem; color: var(--text-secondary); }
.online-dot { display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; margin-right: 4px; }

.server-actions { display: flex; flex-direction: column; gap: 0.5rem; min-width: 110px; }

.badge { padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-featured { background: linear-gradient(135deg, var(--gold), #f97316); color: #000; }
.badge-new { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.badge-hot { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; }

/* SECTION TITLE */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.section-title { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.section-title::before { content: ''; display: block; width: 4px; height: 20px; background: linear-gradient(180deg, var(--accent), var(--accent2)); border-radius: 2px; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; padding: 1.25rem; }
.widget-title { font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.widget-title span { font-size: 1rem; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.stat-box { background: var(--bg-secondary); border-radius: 10px; padding: 0.75rem; text-align: center; border: 1px solid var(--border-light); }
.stat-box .val { font-size: 1.3rem; font-weight: 800; color: var(--accent2); }
.stat-box .lbl { font-size: 0.7rem; color: var(--text-secondary); margin-top: 0.2rem; }

.top-server-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border-light); }
.top-server-item:last-child { border-bottom: none; padding-bottom: 0; }
.top-num { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); width: 20px; }
.top-logo { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.top-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.top-votes { font-size: 0.75rem; color: var(--accent2); margin-top: 0.1rem; }
.top-rank-badge { margin-left: auto; }

.discord-widget { background: linear-gradient(135deg, #5865f2, #4752c4); border-radius: 12px; padding: 1.25rem; text-align: center; }
.discord-widget h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.discord-widget p { font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.btn-discord { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: #fff; width: 100%; justify-content: center; }
.btn-discord:hover { background: rgba(255,255,255,0.3); transform: translateY(-1px); }

.add-server-widget { background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(168,85,247,0.08)); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; text-align: center; }
.add-server-widget h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.add-server-widget p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.2rem; line-height: 1.6; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2rem; }
.page-btn { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 600; transition: all 0.2s; }
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* FOOTER */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border-light); margin-top: 4rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-top: 0.75rem; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent2); }
.footer-bottom { border-top: 1px solid var(--border-light); padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-secondary); }
.footer-bottom a { color: var(--accent2); }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); z-index: 2000; display: none; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; width: 90%; max-width: 480px; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-header h2 { font-size: 1.3rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: 10px; padding: 0.65rem 1rem; color: var(--text-primary); font-size: 0.9rem; outline: none; transition: border-color 0.2s; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-footer { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; }

/* TOAST */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 3000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; box-shadow: 0 8px 30px rgba(0,0,0,0.3); animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
.toast.success .toast-icon { color: var(--green); }
.toast.error .toast-icon { color: var(--red); }

/* Navbar scroll effect */
.navbar.scrolled { background: rgba(13,15,26,0.98); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

/* RESPONSIVE */
@media (max-width: 1400px) {
  /* Viewport kenar bannerlarını gizle */
  .vp-banner-left, .vp-banner-right { display: none !important; }
}
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr 260px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .nav-menu {
    display: none; position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(13,15,26,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem; gap: 0.25rem; z-index: 999;
  }
  .nav-menu.mobile-open { display: flex; }
  .nav-menu a { padding: 0.75rem 1rem; border-radius: 10px; }
  .hamburger { display: flex; }
  .nav-actions .btn-ghost, .nav-actions .btn-primary, .nav-actions .btn-gold { display: none; }
  .main-layout { grid-template-columns: 1fr; }
  .server-card { flex-wrap: wrap; }
  .server-rates { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat .num { font-size: 1.5rem; }
}

/* Form validation */
.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid { border-color: var(--red) !important; }
.form-error { font-size: 0.8rem; color: #f87171; margin-top: 0.3rem; display: none; }
.form-error.show { display: block; }
.form-success-msg { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.875rem; color: #34d399; text-align: center; display: none; }
.form-success-msg.show { display: block; }

/* Page transition */
.page-transition { animation: pageIn 0.4s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Pulse glow on premium */
@keyframes premiumPulse { 0%,100% { box-shadow: 0 0 20px rgba(245,158,11,0.15); } 50% { box-shadow: 0 0 35px rgba(245,158,11,0.3); } }
.premium-card { animation: premiumPulse 3s ease-in-out infinite; }

/* Banner Ads */
.banner-ad { background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(245,158,11,0.05)); border: 1px dashed rgba(245,158,11,0.3); border-radius: 12px; padding: 1rem; text-align: center; position: relative; }
.banner-ad-label { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--bg-primary); padding: 0 0.5rem; font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.leaderboard-banner { background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(59,130,246,0.05)); border: 1px dashed rgba(124,58,237,0.3); border-radius: 12px; padding: 1.25rem; text-align: center; margin: 1rem 0 2rem; position: relative; }
.leaderboard-banner-label { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--bg-primary); padding: 0 0.5rem; font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
