/* =====================================================
   POYCORD — Dashboard Styles
   ===================================================== */

/* ---- Layout ---- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  transition: transform var(--ease-normal);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-icon {
  width: 36px; height: 36px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(110,161,255,.35);
}
.sidebar-logo h2 {
  font-size: 18px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar-section-label {
  padding: 6px 8px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--ease-fast);
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: var(--bg-elevated); color: var(--text-secondary); }
.nav-item.active {
  background: rgba(110,161,255,.12);
  color: hsl(217,100%,72%);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--grad-primary);
  border-radius: 0 3px 3px 0;
}
.nav-item svg { flex-shrink: 0; }
.nav-item .nav-badge {
  margin-left: auto;
  background: rgba(110,161,255,.2);
  color: hsl(217,100%,72%);
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 99px;
  font-weight: 600;
}

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Token status in sidebar */
.token-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.token-status .count {
  margin-left: auto;
  font-weight: 700;
  color: var(--accent-green);
}

/* ---- Main Content ---- */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Topbar ---- */
.topbar {
  height: var(--header-height);
  background: rgba(10, 11, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-search {
  flex: 1;
  max-width: 560px;
  position: relative;
}
.topbar-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.topbar-search input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px 9px 38px;
  color: var(--text-primary);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: all var(--ease-fast);
}
.topbar-search input:focus {
  border-color: rgba(110,161,255,.5);
  box-shadow: 0 0 0 3px rgba(110,161,255,.1);
}
.topbar-search input::placeholder { color: var(--text-muted); }

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
  animation: fadeIn .15s ease;
  max-height: 400px;
  overflow-y: auto;
}
.search-dropdown-section { padding: 8px; }
.search-dropdown-label {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--ease-fast);
}
.search-result-item:hover { background: var(--bg-card); }
.search-result-item img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.search-result-item .name { font-size: 14px; font-weight: 500; }
.search-result-item .sub  { font-size: 12px; color: var(--text-muted); }

/* Search type toggle */
.search-type-toggle {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.search-type-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--ease-fast);
}
.search-type-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
}
.search-type-btn:hover { color: var(--text-secondary); }

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar-key-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.topbar-key-badge .key-text {
  color: var(--text-primary);
  font-weight: 600;
  font-family: monospace;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Page ---- */
.page {
  padding: 24px;
  flex: 1;
  display: none;
}
.page.active { display: block; animation: fadeIn .2s ease; }

.page-header {
  margin-bottom: 24px;
}
.page-header h1 { font-size: 22px; margin-bottom: 4px; }
.page-header p  { color: var(--text-muted); font-size: 14px; }

/* ---- Home / Hero ---- */
.hero-section {
  text-align: center;
  padding: 60px 24px 48px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(110,161,255,.1);
  border: 1px solid rgba(110,161,255,.2);
  border-radius: 99px;
  font-size: 12px;
  color: hsl(217,100%,72%);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-search {
  max-width: 520px;
  margin: 0 auto;
}
.hero-search-box {
  display: flex;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.hero-search-box:focus-within {
  border-color: rgba(110,161,255,.4);
  box-shadow: 0 0 0 4px rgba(110,161,255,.08);
}
.hero-search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 14px;
}
.hero-search-box input::placeholder { color: var(--text-muted); }

/* Features grid */
.features-section { padding: 0 24px 48px; }
.features-section h2 {
  font-size: 20px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.features-section h2 .icon-wrap {
  width: 32px; height: 32px;
  background: rgba(234,179,8,.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.features-section > p { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }

.feature-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--ease-fast);
}
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.feature-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 15px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- User Profile Page ---- */
.user-profile-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.profile-banner {
  height: 160px;
  background: var(--grad-primary);
  position: relative;
  overflow: hidden;
}
.profile-banner-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.profile-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4));
}

.profile-info {
  padding: 0 24px 24px;
  position: relative;
}
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -52px;
  margin-bottom: 12px;
}
.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 5px solid var(--bg-card);
  background: var(--bg-elevated);
  object-fit: cover;
  display: block;
}
.profile-status-dot {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
}

.profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-names { flex: 1; }
.profile-username {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-tag { color: var(--text-muted); font-size: 18px; }
.profile-discriminator { color: var(--text-muted); font-size: 14px; font-weight: 400; }
.profile-display-name { color: var(--text-secondary); font-size: 14px; margin-top: 2px; }
.profile-custom-status {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex; align-items: center; gap: 6px;
}

.profile-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.profile-badge {
  width: 22px; height: 22px;
  border-radius: 4px;
  object-fit: contain;
}
.profile-badge-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(110,161,255,.12);
  border: 1px solid rgba(110,161,255,.2);
  border-radius: 6px;
  font-size: 11px;
  color: hsl(217,100%,72%);
  font-weight: 600;
}

.profile-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.profile-meta-item { display: flex; flex-direction: column; gap: 2px; }
.profile-meta-value { font-size: 16px; font-weight: 700; }
.profile-meta-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Profile tabs */
.profile-tabs-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.profile-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  padding: 0 4px;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--ease-fast);
  cursor: pointer;
}
.profile-tab:hover { color: var(--text-secondary); }
.profile-tab.active {
  color: hsl(217,100%,72%);
  border-bottom-color: var(--accent-purple);
}

.profile-tab-content { padding: 24px; }
.profile-tab-pane { display: none; animation: fadeIn .2s ease; }
.profile-tab-pane.active { display: block; }

/* Server card in profile */
.server-card-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--ease-fast);
}
.server-card-mini:hover { border-color: var(--border-light); background: var(--bg-hover); }
.server-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.server-name { font-size: 14px; font-weight: 600; }
.server-sub  { font-size: 12px; color: var(--text-muted); }

/* Punishment record */
.punishment-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-left: 3px solid var(--accent-red);
}
.punishment-item.warn { border-left-color: var(--accent-orange); }
.punishment-item.mute { border-left-color: var(--accent-gold); }
.punishment-item.kick { border-left-color: var(--accent-orange); }
.punishment-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.punishment-reason { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.punishment-meta   { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ---- Server Profile ---- */
.server-profile-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.server-banner {
  height: 140px;
  background: linear-gradient(135deg, #0d1117, #161c28);
  position: relative;
}
.server-profile-info {
  padding: 0 24px 24px;
}
.server-profile-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  border: 4px solid var(--bg-card);
  margin-top: -40px;
  margin-bottom: 12px;
  object-fit: cover;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}

/* ---- Leaderboard ---- */
.leaderboard-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all var(--ease-fast);
  cursor: pointer;
}
.leaderboard-row:hover { border-color: var(--border-light); transform: translateX(2px); }

.leaderboard-rank {
  width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ---- Stats Overview ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent-color, var(--accent-purple));
  opacity: .06;
  transform: translate(20px, -20px);
  filter: blur(20px);
}
.stat-box-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
}
.stat-box-value { font-size: 28px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-box-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-box-change {
  font-size: 11px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-box-change.up   { color: var(--accent-green); }
.stat-box-change.down { color: var(--accent-red); }

/* ---- Admin Panel ---- */
.admin-section {
  background: rgba(239,68,68,.04);
  border: 1px solid rgba(239,68,68,.15);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.admin-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.admin-section-header h2 { font-size: 16px; color: hsl(0,90%,70%); }
.admin-badge {
  padding: 2px 8px;
  background: rgba(239,68,68,.15);
  color: hsl(0,90%,65%);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.key-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.key-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.key-text {
  font-family: monospace;
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}
.key-type {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.key-type.admin { background: rgba(239,68,68,.15); color: hsl(0,90%,65%); }
.key-type.user  { background: rgba(110,161,255,.15); color: hsl(217,100%,72%); }

.add-key-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Token list */
.token-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.token-text {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.token-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.token-status-dot.active  { background: var(--accent-green); }
.token-status-dot.error   { background: var(--accent-red); }

/* ---- Mobile Sidebar Toggle ---- */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px; right: 20px;
  width: 48px; height: 48px;
  background: var(--grad-primary);
  border-radius: 50%;
  align-items: center; justify-content: center;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(110,161,255,.5);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 90;
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .sidebar-overlay.visible { display: block; }
  .page { padding: 16px; }
  .hero-section { padding: 40px 16px 32px; }
  .profile-tabs { padding: 0; }
}

/* =====================================================
   AŞAMA 4 — findcord tarzı profil başlığı
   ===================================================== */
.profile-banner { height: 200px; }

.profile-banner-status {
  position: absolute; left: 0; right: 0; top: 38%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(28px, 4vw, 46px); font-weight: 800;
  color: rgba(25,28,42,.30);
  letter-spacing: .02em; text-align: center; padding: 0 48px;
  pointer-events: none; z-index: 1;
}
.profile-banner-views {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 700; color: #fff;
}
.profile-banner-views:empty { display: none; }

.hero-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 18px; text-align: center; min-width: 84px;
  transition: border-color var(--ease-fast), transform var(--ease-fast);
}
.hero-stat:hover { border-color: var(--border-light); transform: translateY(-2px); }
.hero-stat-val { font-size: 22px; font-weight: 800; line-height: 1; }
.hero-stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Avatar büyüt + halka */
.profile-avatar { width: 112px; height: 112px; }
.profile-avatar-wrap { margin-top: -58px; }

/* Sekme barı: pill hover, daha okunur */
.profile-tab { padding: 13px 16px; font-weight: 600; }
.profile-tab:hover { background: rgba(255,255,255,.03); }

/* Custom status konuşma balonu (avatar yanı) */
.profile-status-bubble { display: none; }
.profile-status-bubble:not(:empty) {
  display: inline-block;
  position: absolute; left: calc(100% + 14px); top: 34px;
  white-space: nowrap; max-width: 340px; overflow: hidden; text-overflow: ellipsis;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 16px; padding: 8px 14px;
  font-size: 13px; color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.profile-status-dot.status-online  { background: hsl(142,70%,45%); }
.profile-status-dot.status-idle    { background: hsl(45,90%,55%); }
.profile-status-dot.status-dnd     { background: hsl(0,75%,55%); }
.profile-status-dot.status-offline { background: var(--text-muted); }

/* Sekme "Yeni" işareti */
.tab-new { color: var(--accent-gold); font-size: 11px; margin-left: 2px; }

/* =====================================================
   ÜST MENÜ (sidebar yerine) — findcord düzeni
   ===================================================== */
.sidebar, .sidebar-toggle, .sidebar-overlay { display: none !important; }
.dashboard-layout { flex-direction: column; }
.main-content { margin-left: 0 !important; }

.topnav {
  position: sticky; top: 0; z-index: 100;
  background: hsla(222, 30%, 7%, .85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: 1320px; margin: 0 auto; padding: 0 20px; height: 62px;
}
.topnav-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.topnav-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 14px rgba(110,161,255,.3); }
.topnav-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 19px;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.topnav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.topnav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; white-space: nowrap; transition: all var(--ease-fast);
}
.topnav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.topnav-links .nav-item.active, .topnav-link.active {
  color: var(--text-primary); background: rgba(110,161,255,.16);
}
.topnav-links .nav-item.active::before { display: none; }

.topnav-dd { position: relative; }
.topnav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px;
  display: none; z-index: 200; animation: fadeIn .12s ease;
}
.topnav-dd.open .topnav-menu { display: block; }
.topnav-menu .nav-item {
  padding: 9px 12px; border-radius: 8px; color: var(--text-secondary);
  font-size: 14px; font-weight: 500; gap: 8px;
}
.topnav-menu .nav-item::before { display: none; }
.topnav-menu .nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }

.topnav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.topnav-right .topbar-search { flex: none; width: 230px; max-width: 230px; }
.topnav-burger { display: none; font-size: 22px; color: var(--text-secondary); padding: 2px 8px; }

/* içerik ortalı konteyner */
.page { max-width: 1320px; margin: 0 auto; width: 100%; }

@media (max-width: 1000px) {
  .topnav-links {
    position: fixed; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-surface); border-bottom: 1px solid var(--border);
    padding: 12px; display: none; max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .topnav-links.open { display: flex; }
  .topnav-burger { display: block; }
  .topnav-dd, .topnav-menu { position: static; }
  .topnav-menu { box-shadow: none; border: none; background: transparent; padding: 2px 0 6px 14px; }
  .topnav-dd .topnav-menu { display: block; }
  .topnav-right .topbar-search { width: 150px; max-width: 150px; }
  .search-type-toggle { display: none; }
}

/* =====================================================
   KICKHAT TERMINAL OVERRIDE — tüm paneli terminal diline çevirir
   (yapı/JS korunur, yalnızca görsel dil KickHat gece-mavisi)
   ===================================================== */

/* -- Topnav → terminal başlık çubuğu -- */
.topnav {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.topnav-inner { position: relative; }
/* trafik ışıkları + prompt */
.topnav-brand::before {
  content: '';
  display: inline-flex;
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff4757;
  box-shadow: 16px 0 0 #ffa502, 32px 0 0 var(--accent-blue);
  margin-right: 44px;
  flex-shrink: 0;
}
.topnav-brand { align-items: center; }
.topnav-name {
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
  -webkit-text-fill-color: var(--text-primary) !important;
  background: none !important;
  color: var(--text-primary) !important;
}
.topnav-name::after {
  content: ':~$';
  color: var(--accent-blue);
  font-family: var(--font-mono);
  margin-left: 2px;
  opacity: .8;
}

/* -- Sidebar logo → mono terminal -- */
.sidebar-logo h2 {
  font-family: var(--font-mono);
  -webkit-text-fill-color: var(--text-primary);
  background: none;
  color: var(--text-primary);
}
.sidebar-logo h2::after {
  content: ' ▊';
  color: var(--accent-blue);
  animation: term-blink 1.1s steps(1) infinite;
}
@keyframes term-blink { 0%,50%{opacity:1} 51%,100%{opacity:0} }

/* -- Kartlar → terminal pencere -- */
.card {
  border-radius: 0 !important;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  padding-top: 34px !important;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 26px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.card::after {
  content: '';
  position: absolute;
  top: 8px; left: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4757;
  box-shadow: 14px 0 0 #ffa502, 28px 0 0 var(--accent-blue);
}
.card > h1:first-child,
.card > h2:first-child,
.card > h3:first-child,
.card > h4:first-child { margin-top: 0 !important; position: relative; z-index: 1; }

/* -- Page header → komut satırı -- */
.page-header h1 {
  font-family: var(--font-mono);
  letter-spacing: -.02em;
}
.page-header h1::before {
  content: 'poycord:~$ ';
  color: var(--accent-blue);
  font-weight: 600;
  opacity: .85;
}
.page-header p::before {
  content: '# ';
  color: var(--text-muted);
}
.page-header p { font-family: var(--font-mono); font-size: 12px; }

/* -- Feature / stat kutuları → keskin terminal -- */
.feature-card, .stat-box, .stat-card, .hero-search-box,
.search-dropdown, .topbar-search input, .input, .btn,
.topbar-key-badge, .toast {
  border-radius: 0 !important;
}
.feature-card { border: 1px solid var(--border); background: var(--bg-card); }
.feature-card h3 { font-family: var(--font-mono); }
.stat-box-value { font-family: var(--font-mono); }

/* -- Arama kutusu → terminal input -- */
.topbar-search {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 0 !important;
}
.topbar-search input { font-family: var(--font-mono); }
.topbar-search::before {
  content: '$';
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-weight: 700;
  margin: 0 2px 0 8px;
  align-self: center;
}

/* -- Hero → terminal -- */
.hero-badge { border-radius: 0 !important; font-family: var(--font-mono); }
.hero-title { font-family: var(--font-mono); letter-spacing: -.03em; }
.hero-search-box { border: 1px solid var(--border); background: var(--bg-card); }

/* -- Butonlar → keskin, mono etiket -- */
.btn { font-family: var(--font-mono); font-weight: 600; letter-spacing: -.01em; }
.btn-primary {
  background: var(--accent-blue);
  color: #06111f;
  border: 1px solid var(--accent-blue);
}
.btn-primary:hover { background: var(--accent-blue-2); }

/* -- nav-item → keskin -- */
.nav-item { border-radius: 0 !important; font-family: var(--font-mono); font-size: 13px; }
.nav-item.active::before { border-radius: 0; }
.nav-badge { border-radius: 0 !important; font-family: var(--font-mono); }

/* -- Glow orb'ları söndür (saf terminal zemin) -- */
.glow-orb { opacity: .10 !important; filter: blur(120px); }

/* ===== SPY v2 — Istihbarat paneli (terminal) ===== */
.spy-wrap { border: 1px solid var(--border); background: var(--bg-card); }
.spy-head {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent-blue); padding: 8px 12px;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
}
.spy-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px; padding: 12px;
}
.spy-card { border: 1px solid var(--border); background: var(--bg-base); display: flex; flex-direction: column; }
.spy-card-h {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--text-secondary); padding: 7px 10px; border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.spy-card-b { padding: 10px; font-size: 12px; }
.spy-stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 0; font-size: 12px; color: var(--text-secondary);
}
.spy-stat-row b { color: var(--text-primary); font-family: var(--font-mono); }
.spy-mini { font-size: 10.5px; color: var(--text-muted); font-family: var(--font-mono); }
.spy-friend {
  display: flex; align-items: center; gap: 8px; padding: 5px 4px;
  cursor: pointer; border-bottom: 1px solid var(--border);
}
.spy-friend:last-child { border-bottom: none; }
.spy-friend:hover { background: var(--bg-hover); }
.spy-score { width: 44px; height: 5px; background: var(--bg-hover); flex-shrink: 0; }
.spy-score-bar { height: 100%; background: var(--accent-blue); }
/* Yaziyor canli durumu */
.spy-typing-live { border-color: var(--accent-blue) !important; box-shadow: 0 0 0 1px var(--accent-blue) inset; }
.spy-typing-live .spy-card-h { color: var(--accent-blue); }
.spy-typing-dots { color: var(--accent-blue); font-weight: 600; animation: spy-pulse 1.1s ease-in-out infinite; }
@keyframes spy-pulse { 0%,100%{opacity:1} 50%{opacity:.45} }
