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

:root {
  --bg-base: #0b0e11;
  --bg-card: #1e2329;
  --bg-elevated: #2b3139;
  --bg-input: #0b0e11;
  --border: #2b3139;
  --border-focus: #f0b90b;
  --text-primary: #eaecef;
  --text-secondary: #848e9c;
  --text-muted: #5e6673;
  --accent: #f0b90b;
  --accent-hover: #f8d12f;
  --green: #0ecb81;
  --red: #f6465d;
  --yellow: #f0b90b;
  --blue: #1e80ff;
  --discord: #5865f2;
  --radius: 6px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', monospace;
  --icon-size: 16px;
  --icon-stroke: 1.75;
}

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

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-weight: 400;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2b3139; border-radius: 3px; }

/* ── Lucide icon defaults ──────────────────────────── */
.lucide { width: var(--icon-size); height: var(--icon-size); stroke-width: var(--icon-stroke); vertical-align: middle; flex-shrink: 0; }
.nav-item .lucide { width: 15px; height: 15px; }

/* ── Login ─────────────────────────────────────────── */
.login-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 40px; width: 100%; max-width: 380px; text-align: center; }
.login-logo-img { width: 48px; height: 48px; margin: 0 auto 20px; }
.login-title { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.login-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; font-weight: 300; }
.btn-discord { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: var(--discord); color: #fff; font-weight: 500; font-size: 14px; padding: 12px 16px; border-radius: var(--radius); border: none; cursor: pointer; transition: opacity .15s; }
.btn-discord:hover { opacity: .9; }
.btn-discord svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Layout ────────────────────────────────────────── */
.app-layout { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 232px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar-brand {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.sidebar-brand .brand-icon-img {
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 12px;
  font-weight: 600;
}
.sidebar-nav {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 14px;
  border-radius: 4px;
  transition: background .1s, color .1s;
  white-space: nowrap;
}
.nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.nav-item.active { background: var(--bg-elevated); color: var(--accent); }
.nav-divider { height: 1px; background: var(--border); margin: 8px 12px; }
.nav-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 12px 6px;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}
.topbar {
  height: 56px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
.search-bar-container { flex: 1; max-width: 400px; }
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  transition: border-color .15s;
}
.search-form:focus-within { border-color: var(--border-focus); }
.search-form .lucide { color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  min-width: 0;
}

/* Search Dropdown */
.search-box .search-input {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px 8px 34px;
  width: 100%;
  transition: border-color .15s;
}
.search-box .search-input:focus { border-color: var(--border-focus); }
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.search-section-label {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background .1s;
}
.search-row:hover { background: var(--bg-elevated); }
.sr-name { font-size: 13px; font-weight: 500; }
.sr-sub { font-size: 11px; color: var(--text-muted); font-weight: 300; }
.auth-box { display: flex; align-items: center; gap: 12px; }
.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-base);
  padding: 5px 14px 5px 5px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.user-avatar { width: 26px; height: 26px; border-radius: 50%; }
.user-name { font-size: 13px; font-weight: 400; }
.btn-logout { color: var(--text-secondary); font-size: 13px; font-weight: 400; transition: color .15s; display: flex; align-items: center; gap: 6px; }
.btn-logout:hover { color: var(--text-primary); }
.btn-discord-small { display: inline-flex; align-items: center; gap: 6px; background: var(--discord); color: #fff; font-weight: 500; font-size: 13px; padding: 7px 16px; border-radius: 4px; transition: opacity .15s; }
.btn-discord-small:hover { opacity: .85; }

.content-wrapper { padding: 28px 32px; max-width: 1200px; width: 100%; margin: 0 auto; }

/* ── Typography ────────────────────────────────────── */
.page-title { font-size: 22px; font-weight: 500; margin-bottom: 20px; letter-spacing: -0.3px; }
.page-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; font-weight: 300; }
.section-title { font-size: 13px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin: 24px 0 12px; }

/* ── Cards ─────────────────────────────────────────── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }

/* ── Tables ────────────────────────────────────────── */
.table-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; overflow-y: hidden; margin-top: 16px; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.data-table th, .data-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table th { color: var(--text-muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; user-select: none; white-space: nowrap; }
.data-table th:hover { color: var(--text-secondary); }
.data-table th.sorted { color: var(--accent); }
.data-table th .sort-arrow { font-size: 10px; margin-left: 4px; opacity: 0.4; }
.data-table th.sorted .sort-arrow { opacity: 1; color: var(--accent); }
.data-table tbody tr { transition: background .1s; }
.data-table tbody tr:hover { background: var(--bg-elevated); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td a { color: var(--accent); font-weight: 400; }
.data-table td a:hover { text-decoration: underline; }

/* ── Filter Bar ────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar select, .filter-bar input {
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 400;
  outline: none;
  transition: border-color .15s;
  min-height: 36px;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--border-focus); }
.filter-bar .lucide { color: var(--text-muted); flex-shrink: 0; }

/* ── Badges ────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-steam { background: rgba(30,128,255,.12); color: var(--blue); }
.badge-xbox { background: rgba(14,203,129,.12); color: var(--green); }
.badge-playstation { background: rgba(240,185,11,.12); color: var(--accent); }
.badge-rank { background: var(--bg-elevated); color: var(--text-secondary); font-size: 12px; padding: 4px 12px; border-radius: 3px; font-weight: 400; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-elevated); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 500; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: rgba(246,70,93,.08); }
.btn-sm { padding: 5px 12px; font-size: 13px; }

/* ── Form Fields ───────────────────────────────────── */
.field-group { margin-bottom: 16px; }
.field-group:last-child { margin-bottom: 0; }
.field-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.field-input {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 12px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color .15s;
}
.field-input:focus { border-color: var(--border-focus); }
textarea.field-input { min-height: 72px; resize: vertical; }

/* ── Stats Grid ────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-card .lucide { color: var(--text-muted); margin-bottom: 2px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.stat-value { font-size: 24px; font-weight: 500; letter-spacing: -0.5px; }

/* ── Hero ──────────────────────────────────────────── */
.hero { padding: 24px 0 20px; }
.hero h1 { font-size: 24px; font-weight: 500; letter-spacing: -0.3px; }
.hero p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; font-weight: 300; }

/* ── Team Grid ─────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: block;
  transition: border-color .15s, transform .15s;
}
.team-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.team-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.team-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; flex-shrink: 0; background: var(--bg-elevated); padding: 4px; }
.team-color-dot { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.team-name { font-size: 18px; font-weight: 500; letter-spacing: -0.2px; }
.team-code { font-size: 13px; color: var(--text-muted); font-weight: 400; margin-top: 2px; font-family: var(--mono); }
.team-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.team-card-stat { text-align: center; }
.team-card-stat-val { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.3px; }
.team-card-stat-label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.3px; }

/* ── Player Profile ────────────────────────────────── */
.player-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}
.player-hero-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.player-hero-right { flex-shrink: 0; }
.player-avatar-lg {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
  overflow: hidden;
}
.player-avatar-lg img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.player-tag { font-size: 24px; font-weight: 500; letter-spacing: -0.3px; }
.player-username { font-size: 13px; color: var(--text-muted); font-weight: 300; margin-bottom: 8px; }
.player-meta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: capitalize;
}
.meta-badge .lucide { width: 12px; height: 12px; }
.meta-team { text-decoration: none; transition: border-color .15s; border: 1px solid transparent; }
.meta-team:hover { border-color: var(--accent); }
.meta-team-logo { width: 14px; height: 14px; border-radius: 3px; object-fit: contain; }
.meta-rank { color: var(--accent); }
.mv-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.mv-label .lucide { width: 14px; height: 14px; }
.mv-amount { font-size: 32px; font-weight: 500; color: var(--green); letter-spacing: -0.5px; text-align: right; }

.player-section { margin-bottom: 24px; }
.player-section .section-title { margin-bottom: 14px; }

.overview-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ov-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.ov-card-header { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ov-card-header .lucide { width: 13px; height: 13px; }
.ov-big { font-size: 24px; font-weight: 500; letter-spacing: -0.3px; }
.ov-green { color: var(--green); }
.ov-red { color: var(--red); }
.ov-detail { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 300; }
.ov-bar { height: 4px; background: var(--bg-elevated); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.ov-bar-fill { height: 100%; border-radius: 2px; transition: width .3s; }

.all-stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.astat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.astat-val { font-size: 20px; font-weight: 500; letter-spacing: -0.3px; margin-bottom: 4px; }
.astat-label { font-size: 11px; color: var(--text-muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.3px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.astat-label .lucide { width: 11px; height: 11px; }

.pos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pos-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pos-card.pos-best { border-color: var(--accent); }
.pos-card-left { display: flex; align-items: center; gap: 10px; }
.pos-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.pos-icon .lucide { width: 18px; height: 18px; }
.pos-name { font-size: 14px; font-weight: 500; }
.pos-pts-val { font-size: 12px; color: var(--text-muted); font-weight: 300; }
.pos-bar-wrap { height: 6px; background: var(--bg-elevated); border-radius: 3px; overflow: hidden; }
.pos-bar { height: 100%; }
.pos-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.pos-card.pos-best .pos-bar-fill { background: var(--accent); }

.rank-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-elevated);
}

.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.detail-label { color: var(--text-muted); font-weight: 400; display: flex; align-items: center; gap: 6px; }
.detail-label .lucide { width: 14px; height: 14px; }
.detail-val { font-weight: 500; text-transform: capitalize; }

.p-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.p-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}

/* ── Partner Cards ─────────────────────────────────── */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
  max-width: 100%;
}
.partner-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
  cursor: pointer;
  height: 100%;
}
.partner-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.partner-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.partner-card-info {
  flex: 1;
  min-width: 0;
}
.partner-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partner-card-handle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.partner-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.partner-card-links {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.partner-card-links a {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.partner-card-links a:hover {
  color: var(--accent);
  background: var(--accent-bg);
}
.partner-card-links a .lucide {
  width: 15px;
  height: 15px;
}
.partner-tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
  flex-shrink: 0;
  white-space: nowrap;
}
.partner-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Partner Detail ────────────────────────────────── */
.pd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 800px;
}
.pd-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.pd-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.pd-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pd-header-info {
  flex: 1;
  min-width: 0;
}
.pd-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.pd-handle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}
.pd-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.pd-desc h2, .pd-desc h3, .pd-desc h4 {
  color: var(--text-primary);
  margin: 16px 0 8px;
}
.pd-desc h2 { font-size: 18px; }
.pd-desc h3 { font-size: 16px; }
.pd-desc h4 { font-size: 14px; }
.pd-desc strong { color: var(--text-primary); }
.pd-desc em { font-style: italic; }
.pd-desc del { text-decoration: line-through; opacity: 0.6; }
.pd-desc blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  margin: 12px 0;
  background: var(--bg-elevated);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-muted);
}
.pd-desc li {
  padding-left: 8px;
  margin: 4px 0;
  list-style: none;
}
.pd-desc li::before {
  content: "\2022";
  color: var(--accent);
  margin-right: 8px;
}
.pd-desc a { color: var(--accent); text-decoration: none; }
.pd-desc a:hover { text-decoration: underline; }
.pd-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.pd-link:hover {
  color: var(--accent);
  background: var(--accent-bg);
}
.pd-link .lucide {
  width: 14px;
  height: 14px;
}

/* ── Admin Grid ────────────────────────────────────── */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color .15s;
}
.admin-card:hover { border-color: var(--accent); }
.admin-card-icon {
  width: 40px; height: 40px;
  background: var(--bg-elevated);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.admin-card-icon .lucide { width: 20px; height: 20px; }
.admin-card-body { min-width: 0; }
.admin-card-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.admin-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; font-weight: 300; }

/* ── Admin Form ────────────────────────────────────── */
.admin-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.admin-form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.admin-form-row .field-group { min-width: 140px; flex: 1; }

/* ── Rankings Hub ──────────────────────────────────── */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color .15s;
}
.rank-card:hover { border-color: var(--accent); }
.rank-card-icon {
  width: 44px; height: 44px;
  background: var(--bg-elevated);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.rank-card-icon .lucide { width: 22px; height: 22px; }
.rank-card-body { min-width: 0; }
.rank-card-title { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.rank-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; font-weight: 300; }

/* ── Podium ────────────────────────────────────────── */
.podium { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.podium-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; min-width: 180px; }
.podium-rank { font-size: 28px; font-weight: 500; margin-bottom: 6px; }
.podium-rank.r1 { color: var(--accent); }
.podium-rank.r2 { color: var(--text-secondary); }
.podium-rank.r3 { color: #cd7f32; }
.podium-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.podium-name a { color: var(--text-primary); }
.podium-name a:hover { color: var(--accent); }
.podium-pts { font-size: 18px; font-weight: 500; color: var(--green); }
.podium-pts-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }

/* ── Flash Messages ────────────────────────────────── */
.flash-msg { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; font-weight: 400; }
.flash-success { background: rgba(14,203,129,.08); color: var(--green); border: 1px solid rgba(14,203,129,.15); }
.flash-error { background: rgba(246,70,93,.08); color: var(--red); border: 1px solid rgba(246,70,93,.15); }

/* ── Empty State ───────────────────────────────────── */
.empty-state { padding: 48px; text-align: center; color: var(--text-muted); font-size: 14px; font-weight: 300; }

/* ── Compare Search ────────────────────────────────── */
.compare-form { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; }
.compare-form .search-wrap { min-width: 220px; flex: 1; position: relative; }
.compare-form .field-label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.search-box { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.search-input { padding-left: 36px !important; }
.search-input.input-selected { border-color: var(--accent); }
.search-input.input-unselected { opacity: 0.7; }
.suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.sug-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .1s;
  border-bottom: 1px solid var(--border);
}
.sug-row:last-child { border-bottom: none; }
.sug-row:hover { background: var(--bg-elevated); }
.sug-logo {
  width: 32px; height: 32px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
.sug-logo-initial {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}
.sug-info { flex: 1; min-width: 0; }
.sug-name { font-size: 14px; font-weight: 500; }
.sug-sub { font-size: 12px; color: var(--text-muted); font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-mv { font-size: 13px; font-weight: 500; color: var(--green); flex-shrink: 0; }

/* ── Compare Grid ──────────────────────────────────── */
.compare-grid { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 0; align-items: start; }
.player-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; overflow: hidden; }
.vs-divider { display: flex; align-items: center; justify-content: center; padding-top: 70px; }
.vs-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.p-name { font-size: 18px; font-weight: 500; margin-bottom: 2px; }
.p-platform { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; font-weight: 400; }
.p-mv { font-size: 28px; font-weight: 500; color: var(--green); margin-bottom: 20px; }
.p-mv-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.stat-row:last-child { border-bottom: none; }
.stat-row-label { color: var(--text-secondary); font-weight: 300; }
.stat-row-val { font-weight: 500; }
.stat-row-val.winner { color: var(--green); }

/* ── Season Stats ──────────────────────────────────── */
.ss-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.ss-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ss-table th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 11px 14px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.ss-table th:hover { color: var(--text-secondary); }
.ss-table th.sorted { color: var(--accent); }
.ss-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.ss-table tr:hover td { background: var(--bg-elevated); }
.ss-table td a { color: var(--accent); font-weight: 400; }

/* ── Audit Log ─────────────────────────────────────── */
.action-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; }
.action-login { background: rgba(14,203,129,.08); color: var(--green); }
.action-delete { background: rgba(246,70,93,.08); color: var(--red); }
.action-edit { background: rgba(240,185,11,.08); color: var(--accent); }
.action-view { background: rgba(132,142,156,.08); color: var(--text-secondary); }
.action-create { background: rgba(240,185,11,.08); color: var(--accent); }
.action-restore { background: rgba(30,128,255,.08); color: var(--blue); }

/* ── Pagination ────────────────────────────────────── */
.pagination-footer { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 0; }
.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--text-primary);
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: background .15s;
}
.pagination-btn:hover { background: var(--bg-elevated); }
.pagination-btn.disabled { opacity: .4; cursor: not-allowed; }
.pagination-info { font-size: 14px; color: var(--text-secondary); font-weight: 300; }

/* ── Terminal ──────────────────────────────────────── */
.console-wrapper { display: flex; flex-direction: column; }
.console-section { flex: 1; display: flex; flex-direction: column; border-radius: var(--radius); background: #080810; border: 1px solid var(--border); overflow: hidden; min-height: 400px; }
.console-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.console-title-row { display: flex; align-items: center; gap: 8px; }
.console-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.console-title { font-size: 13px; font-weight: 500; }
.console-badge { font-size: 11px; font-weight: 500; color: var(--green); border: 1px solid rgba(14,203,129,.15); padding: 2px 8px; border-radius: 3px; background: rgba(14,203,129,.06); }
.console-actions { display: flex; gap: 6px; }
.console-btn { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-elevated); border: none; color: var(--text-secondary); font-size: 12px; font-weight: 400; padding: 5px 12px; border-radius: 3px; cursor: pointer; transition: background .15s, color .15s; }
.console-btn:hover { background: var(--border); color: var(--text-primary); }
.console-btn .lucide { width: 12px; height: 12px; }
.console-body { flex: 1; overflow-y: auto; padding: 14px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: #b8c0cc; }
.log-line { padding: 1px 0; display: flex; gap: 10px; white-space: pre-wrap; }
.log-ts { color: var(--text-muted); font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.log-error { color: var(--red); }
.log-warn { color: var(--yellow); }
.log-scraper { color: var(--blue); }
.log-info { color: var(--green); }
.log-default { color: #848e9c; }
.console-input-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-card); border-top: 1px solid var(--border); }
.console-prompt { font-family: var(--mono); font-weight: 500; color: var(--green); font-size: 14px; display: flex; align-items: center; }
.console-prompt .lucide { width: 14px; height: 14px; }
.console-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-primary); font-family: var(--mono); font-size: 13px; min-width: 0; }
.console-run-btn { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-elevated); border: none; color: var(--text-primary); font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 3px; cursor: pointer; transition: background .15s; }
.console-run-btn:hover { background: var(--border); }
.console-run-btn .lucide { width: 12px; height: 12px; }

/* ── Settings ──────────────────────────────────────── */
.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.plugin-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.plugin-header .lucide { color: var(--accent); }
.plugin-name { font-size: 15px; font-weight: 500; }
.btn-save-top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 4px; font-size: 14px; font-weight: 500; font-family: var(--font); cursor: pointer; border: none; background: var(--accent); color: #000; transition: background .15s; }
.btn-save-top:hover { background: var(--accent-hover); }
.btn-save-top .lucide { width: 15px; height: 15px; }

/* ── Responsive ────────────────────────────────────── */
.menu-toggle { display: none; background: transparent; border: none; color: var(--text-primary); cursor: pointer; padding: 6px; margin-right: 8px; }
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; }

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideRight {
  from { width: 0; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero { animation: fadeUp .4s ease both; }
.player-hero { animation: fadeUp .35s ease both; }
.profile-header { animation: fadeUp .35s ease both; }

.stats-grid .stat-card,
.team-grid .team-card,
.partner-grid .partner-card,
.admin-card { animation: fadeUp .4s ease both; }
.stats-grid .stat-card:nth-child(1), .team-grid .team-card:nth-child(1), .partner-grid .partner-card:nth-child(1) { animation-delay: .03s; }
.stats-grid .stat-card:nth-child(2), .team-grid .team-card:nth-child(2), .partner-grid .partner-card:nth-child(2) { animation-delay: .06s; }
.stats-grid .stat-card:nth-child(3), .team-grid .team-card:nth-child(3), .partner-grid .partner-card:nth-child(3) { animation-delay: .09s; }
.stats-grid .stat-card:nth-child(4), .team-grid .team-card:nth-child(4), .partner-grid .partner-card:nth-child(4) { animation-delay: .12s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: .15s; }
.stats-grid .stat-card:nth-child(6) { animation-delay: .18s; }
.stats-grid .stat-card:nth-child(7) { animation-delay: .21s; }
.stats-grid .stat-card:nth-child(8) { animation-delay: .24s; }
.stats-grid .stat-card:nth-child(9) { animation-delay: .27s; }
.stats-grid .stat-card:nth-child(10) { animation-delay: .30s; }
.stats-grid .stat-card:nth-child(11) { animation-delay: .33s; }
.stats-grid .stat-card:nth-child(12) { animation-delay: .36s; }

.player-section { animation: fadeUp .4s ease both; }
.player-section:nth-child(2) { animation-delay: .08s; }
.player-section:nth-child(3) { animation-delay: .16s; }
.player-section:nth-child(4) { animation-delay: .24s; }
.player-section:nth-child(5) { animation-delay: .32s; }
.player-section:nth-child(6) { animation-delay: .40s; }

.ov-card { animation: scaleIn .35s ease both; }
.ov-card:nth-child(1) { animation-delay: .05s; }
.ov-card:nth-child(2) { animation-delay: .10s; }
.ov-card:nth-child(3) { animation-delay: .15s; }
.ov-card:nth-child(4) { animation-delay: .20s; }
.ov-card:nth-child(5) { animation-delay: .25s; }
.ov-card:nth-child(6) { animation-delay: .30s; }

.astat { animation: countUp .35s ease both; }
.astat:nth-child(1) { animation-delay: .02s; }
.astat:nth-child(2) { animation-delay: .04s; }
.astat:nth-child(3) { animation-delay: .06s; }
.astat:nth-child(4) { animation-delay: .08s; }
.astat:nth-child(5) { animation-delay: .10s; }
.astat:nth-child(6) { animation-delay: .12s; }
.astat:nth-child(7) { animation-delay: .14s; }
.astat:nth-child(8) { animation-delay: .16s; }
.astat:nth-child(9) { animation-delay: .18s; }
.astat:nth-child(10) { animation-delay: .20s; }
.astat:nth-child(11) { animation-delay: .22s; }
.astat:nth-child(12) { animation-delay: .24s; }

.pos-card { animation: scaleIn .35s ease both; }
.pos-card:nth-child(1) { animation-delay: .05s; }
.pos-card:nth-child(2) { animation-delay: .12s; }
.pos-card:nth-child(3) { animation-delay: .19s; }
.pos-card:nth-child(4) { animation-delay: .26s; }

.pos-bar-fill { animation: slideRight .8s ease both; animation-delay: .4s; }

.stat-card:hover,
.team-card:hover,
.partner-card:hover,
.ov-card:hover,
.astat:hover,
.pos-card:hover { transform: translateY(-2px); transition: transform .2s ease; }

.stat-card, .team-card, .partner-card, .ov-card, .astat, .pos-card { transition: transform .2s ease, box-shadow .2s ease; }

.data-table tbody tr { animation: fadeIn .3s ease both; }
.data-table tbody tr:nth-child(1) { animation-delay: .05s; }
.data-table tbody tr:nth-child(2) { animation-delay: .10s; }
.data-table tbody tr:nth-child(3) { animation-delay: .15s; }
.data-table tbody tr:nth-child(4) { animation-delay: .20s; }
.data-table tbody tr:nth-child(5) { animation-delay: .25s; }

.btn { transition: all .15s ease; }
.btn:active { transform: scale(0.97); }

.nav-item { transition: background .15s ease, color .15s ease; }

.compare-grid { animation: fadeUp .4s ease both; }

.empty-state { animation: fadeIn .3s ease both; }

/* ── Partner Editor ────────────────────────────────── */
.partner-editor { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.editor-left { display: flex; flex-direction: column; gap: 16px; }
.editor-right { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.editor-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.editor-section-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.editor-section-title .lucide { width: 14px; height: 14px; }
.editor-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 0;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-grid-2:last-child { margin-bottom: 0; }
.color-pick {
  width: 100%; height: 36px; padding: 2px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg-input);
}

/* Rich Text Editor */
.rich-editor { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rich-toolbar {
  display: flex; gap: 2px; padding: 6px 8px;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
}
.rich-btn {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent; border-radius: 3px; color: var(--text-secondary);
  cursor: pointer; font-size: 13px; font-family: var(--font); transition: all .1s;
}
.rich-btn:hover { background: var(--bg-card); border-color: var(--border); color: var(--text-primary); }
.rich-sep { width: 1px; background: var(--border); margin: 4px 6px; }
.rich-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 180px; }
.rich-input {
  width: 100%; min-height: 180px; padding: 12px; background: var(--bg-base); color: var(--text-primary);
  border: none; border-right: 1px solid var(--border); font-family: var(--mono); font-size: 13px;
  line-height: 1.6; resize: vertical; outline: none;
}
.rich-preview {
  padding: 12px; font-size: 13px; line-height: 1.7; color: var(--text-secondary);
  overflow-y: auto; background: var(--bg-card);
}
.rich-preview h4 { font-size: 14px; font-weight: 500; color: var(--text-primary); margin: 8px 0 4px; }
.rich-preview blockquote {
  border-left: 3px solid var(--accent); padding-left: 10px; margin: 6px 0;
  color: var(--text-muted); font-style: italic;
}
.rich-preview li { margin-left: 16px; margin-bottom: 2px; }
.rich-preview a { color: var(--accent); }
.preview-placeholder { color: var(--text-muted); font-style: italic; }

/* Partner Preview Card */
.partner-preview-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: border-color .2s;
}
.ppc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ppc-logo {
  width: 48px; height: 48px; border-radius: 10px; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.ppc-name { font-size: 16px; font-weight: 500; }
.ppc-handle { font-size: 12px; color: var(--text-muted); font-weight: 300; }
.ppc-tier {
  margin-left: auto; padding: 3px 10px; border-radius: 4px; font-size: 11px;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px;
  border: 1px solid var(--border); color: var(--text-secondary);
}
.ppc-desc { font-size: 13px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 14px; }
.ppc-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.ppc-socials a {
  font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center;
  gap: 4px; transition: color .15s;
}
.ppc-socials a:hover { color: var(--accent); }
.ppc-socials a .lucide { width: 12px; height: 12px; }

/* Existing Partners List */
.existing-list { display: flex; flex-direction: column; gap: 6px; max-height: 400px; overflow-y: auto; }
.existing-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; background: var(--bg-elevated); border-radius: var(--radius);
  transition: background .1s;
}
.existing-item:hover { background: var(--bg-card); }
.eci-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.eci-logo { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.eci-logo-initial {
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: #fff;
}
.eci-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eci-sub { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }
.eci-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ── Backup Management ─────────────────────────────── */
.backup-status {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px;
}
.backup-stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; text-align: center;
}
.backup-stat-val { font-size: 24px; font-weight: 500; letter-spacing: -0.3px; }
.backup-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 4px; }
.backup-next { color: var(--accent); }
.backup-actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.backup-actions .spacer { flex: 1; }
.backup-auto-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 12px; color: var(--text-secondary);
}
.backup-auto-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.backup-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s;
}
.backup-row:hover { border-color: var(--accent); }
.backup-icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-secondary);
}
.backup-icon .lucide { width: 18px; height: 18px; }
.backup-info { flex: 1; min-width: 0; }
.backup-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backup-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; margin-top: 2px; }
.backup-actions-row { display: flex; gap: 6px; flex-shrink: 0; }
.backup-empty { padding: 40px; text-align: center; color: var(--text-muted); font-size: 14px; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .3s; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-overlay { display: block; }
  .content-wrapper { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .player-hero { flex-direction: column; text-align: center; }
  .player-hero-left { flex-direction: column; }
  .player-meta-row { justify-content: center; }
  .mv-amount { text-align: center; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .all-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pos-grid { grid-template-columns: 1fr 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .vs-divider { padding: 12px 0; }
  .partner-editor { grid-template-columns: 1fr; }
  .editor-right { position: static; }
  .rich-body { grid-template-columns: 1fr; }
  .rich-input { border-right: none; border-bottom: 1px solid var(--border); min-height: 120px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .backup-status { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
}

/* ── Records & Awards ────────────────────────────── */
.records-cats { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.record-cat-btn {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 7px 16px; font-size: 13px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all .15s; font-family: var(--font);
}
.record-cat-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.record-cat-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
.record-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.record-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  transition: border-color .15s, transform .15s; animation: fadeUp .4s ease both;
}
.record-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.record-icon-wrap {
  width: 40px; height: 40px; background: var(--bg-elevated); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--accent);
}
.record-icon-wrap .lucide { width: 20px; height: 20px; }
.record-body { flex: 1; min-width: 0; }
.record-name { font-size: 13px; color: var(--text-secondary); font-weight: 400; margin-bottom: 2px; }
.record-player { font-size: 15px; font-weight: 600; color: var(--text-primary); display: block; margin-bottom: 4px; }
.record-player:hover { color: var(--accent); }
.record-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.record-team { font-size: 12px; font-weight: 500; }
.record-season {
  font-size: 11px; background: var(--bg-elevated); color: var(--text-muted);
  padding: 2px 7px; border-radius: 3px; font-weight: 500;
}
.record-value {
  font-size: 20px; font-weight: 700; color: var(--green); font-family: var(--mono);
  flex-shrink: 0; min-width: 60px; text-align: right;
}

/* ── About Page ─────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.about-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; transition: border-color .2s, transform .2s;
}
.about-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.about-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  color: var(--accent);
}
.about-icon .lucide { width: 22px; height: 22px; }
.about-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.about-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; font-weight: 300; }
.about-section { margin-bottom: 28px; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tech-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px;
}
.tech-name { font-weight: 500; }
.tech-desc { color: var(--text-muted); font-size: 12px; font-weight: 300; }
.cmd-list { display: flex; flex-direction: column; gap: 6px; }
.cmd-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px;
}
.cmd-item code {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--accent); background: var(--bg-elevated); padding: 3px 8px;
  border-radius: 4px; white-space: nowrap;
}
.cmd-item span { color: var(--text-secondary); font-weight: 300; }

/* ── Radar Chart ───────────────────────────────────── */
.radar-wrap { margin-bottom: 20px; }
.radar-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.radar-svg { width: 100%; max-width: 520px; margin: 0 auto; display: block; }
.radar-legend { display: flex; justify-content: center; gap: 28px; margin-top: 14px; }
.rl-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.rl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

@media (max-width: 1024px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .overview-grid { grid-template-columns: repeat(3, 1fr); } .all-stats-grid { grid-template-columns: repeat(3, 1fr); } }
