/* ============================================================
   VantaMC - Leaderboard & Player Profile Styles
   ============================================================ */

/* Leaderboard Hero & Search */
.lb-search-wrap {
  max-width: 680px;
  width: 100%;
  margin: 24px auto 14px;
  position: relative;
}

.lb-sync-notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 auto 28px;
}

.lb-sync-notice svg {
  color: #c084fc;
  flex-shrink: 0;
}

.lb-search-box {
  display: flex;
  align-items: center;
  background: rgba(14, 14, 21, 0.95);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  position: relative;
}

.lb-search-box:focus-within {
  border-color: var(--pink-neon);
  box-shadow: 0 10px 35px rgba(236, 72, 153, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.lb-search-box svg {
  flex-shrink: 0;
  margin-left: 10px;
  color: #c084fc;
  transition: color 0.2s ease;
}

.lb-search-box:focus-within svg {
  color: var(--pink-neon);
}

.lb-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  padding: 10px 8px;
  direction: rtl;
  text-align: right;
}

.lb-search-input::placeholder {
  color: rgba(226, 232, 240, 0.72);
  font-size: 14.5px;
  direction: rtl;
  text-align: right;
  opacity: 1;
}

.lb-search-btn {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  border: none;
  border-radius: 999px;
  color: #fff;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lb-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

/* Leaderboard Unified Outer Frame ("توی یه کادر باشن") */
.lb-frame {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(13, 13, 20, 0.88);
  border: 1.5px solid rgba(168, 85, 247, 0.2);
  border-radius: 24px;
  padding: 24px 28px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(168, 85, 247, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lb-frame-head {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.16);
}
.lb-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}
.lb-tab-btn {
  background: rgba(20, 20, 28, 0.75);
  border: 1.5px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  padding: 9px 20px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lb-tab-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.5);
}
.lb-tab-btn.active {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.45);
}

/* Leaderboard List & Rows */
.lb-list { display: flex; flex-direction: column; gap: 10px; }
.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 18, 26, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 12px 22px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.lb-row:hover {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateX(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Rank Highlights */
.lb-row.rank-row-1 {
  background: linear-gradient(270deg, rgba(234, 179, 8, 0.14) 0%, rgba(19, 9, 39, 0.9) 100%);
  border-color: rgba(234, 179, 8, 0.48);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.1);
}
.lb-row.rank-row-1:hover { border-color: #facc15; box-shadow: 0 0 26px rgba(234, 179, 8, 0.25); }
.lb-row.rank-row-1 .lb-stat-val { color: #fbbf24; }

.lb-row.rank-row-2 {
  background: linear-gradient(270deg, rgba(203, 213, 225, 0.11) 0%, rgba(19, 9, 39, 0.9) 100%);
  border-color: rgba(203, 213, 225, 0.38);
  box-shadow: 0 0 18px rgba(203, 213, 225, 0.08);
}
.lb-row.rank-row-2:hover { border-color: #e2e8f0; box-shadow: 0 0 22px rgba(203, 213, 225, 0.2); }
.lb-row.rank-row-2 .lb-stat-val { color: #e2e8f0; }

.lb-row.rank-row-3 {
  background: linear-gradient(270deg, rgba(217, 119, 6, 0.11) 0%, rgba(19, 9, 39, 0.9) 100%);
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.08);
}
.lb-row.rank-row-3:hover { border-color: #f59e0b; box-shadow: 0 0 22px rgba(217, 119, 6, 0.2); }
.lb-row.rank-row-3 .lb-stat-val { color: #f59e0b; }

.lb-row-player { display: flex; align-items: center; gap: 16px; }

.lb-rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14.5px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.lb-rank-badge.rank-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #451a03;
  border: 1.5px solid rgba(254, 240, 138, 0.6);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.65);
}
.lb-rank-badge.rank-2 {
  background: linear-gradient(135deg, #94a3b8 0%, #e2e8f0 100%);
  color: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 16px rgba(226, 232, 240, 0.5);
}
.lb-rank-badge.rank-3 {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #fff;
  border: 1.5px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 16px rgba(180, 83, 9, 0.55);
}

.lb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  image-rendering: pixelated;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  flex-shrink: 0;
}

.lb-player-text { display: flex; flex-direction: column; }
.lb-player-name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 0.3px; }
.lb-player-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.lb-row-stat { display: flex; flex-direction: column; align-items: flex-end; text-align: left; }
.lb-stat-val { font-size: 21px; font-weight: 900; color: var(--pink-neon); line-height: 1.1; }
.lb-stat-lbl { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

/* Kit Pills Cloud */
.lb-kits-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.lb-kit-tag {
  background: rgba(14, 6, 30, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lb-kit-tag b { color: var(--pink-neon); }

@media (max-width: 640px) {
  .lb-frame { padding: 18px 14px 20px; border-radius: 18px; }
  .lb-row { padding: 10px 14px; gap: 10px; }
  .lb-row-player { gap: 10px; }
  .lb-avatar { width: 38px; height: 38px; }
  .lb-rank-badge { width: 30px; height: 30px; font-size: 13px; }
  .lb-player-name { font-size: 14.5px; }
  .lb-player-sub { font-size: 11px; }
  .lb-stat-val { font-size: 18px; }
  .lb-stat-lbl { font-size: 10px; }
  .lb-tabs { gap: 6px; }
  .lb-tab-btn { padding: 7px 14px; font-size: 12px; }
}

/* Profile Page Layout */
.profile-card {
  background: linear-gradient(180deg, rgba(23, 11, 48, 0.95) 0%, rgba(13, 5, 28, 0.98) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  margin-bottom: 32px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.profile-avatar-large {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  image-rendering: pixelated;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--pink-neon);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.profile-stat-box {
  background: rgba(9, 4, 20, 0.8);
  border: 1.5px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  transition: all 0.2s ease;
}

.profile-stat-box:hover {
  border-color: var(--pink-neon);
  transform: translateY(-2px);
}

.profile-stat-val {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.profile-stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* Not Found State */
.profile-not-found-card {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(23, 11, 48, 0.95) 0%, rgba(13, 5, 28, 0.98) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: 24px;
  padding: 48px 32px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile-not-found-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.16) 0%, rgba(239, 68, 68, 0.04) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.2);
}

.profile-not-found-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  text-align: center;
  line-height: 1.4;
}

.profile-not-found-title .not-found-name {
  color: #f472b6;
  font-family: monospace;
  font-size: 20px;
  background: rgba(236, 72, 153, 0.12);
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgba(236, 72, 153, 0.3);
  display: inline-block;
  direction: ltr;
}

.profile-not-found-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  max-width: 440px;
  margin: 0 auto 28px;
  text-align: center;
}

.profile-not-found-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* ============================================================
   MCPVP Tier List Leaderboard & Profile Styles (mcpvp.com/tiers)
   ============================================================ */

.mcpvp-frame {
  background: rgba(12, 14, 22, 0.92);
  border: 1.5px solid rgba(168, 85, 247, 0.22);
  border-radius: 20px;
  padding: 20px 24px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Category Tabs Bar */
.mcpvp-tabs-bar {
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 14px;
}

.mcpvp-tabs-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.4) transparent;
}

.mcpvp-tabs-scroller::-webkit-scrollbar {
  height: 5px;
}
.mcpvp-tabs-scroller::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 999px;
}

.mcpvp-tab-btn {
  background: rgba(20, 24, 38, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 7px 15px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mcpvp-tab-btn:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.4);
  color: #fff;
}

.mcpvp-tab-btn.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(168, 85, 247, 0.3) 100%);
  border-color: #ec4899;
  color: #fff;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.35);
}

.mcpvp-tab-icon {
  image-rendering: pixelated;
  flex-shrink: 0;
}

/* Subbar: Search & Meta */
.mcpvp-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mcpvp-search-box {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  background: rgba(18, 21, 33, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}

.mcpvp-search-box:focus-within {
  border-color: #ec4899;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.3);
}

.mcpvp-search-box svg {
  color: #94a3b8;
  flex-shrink: 0;
  margin-left: 10px;
}

.mcpvp-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  direction: ltr;
  text-align: left;
}

.mcpvp-search-input::placeholder {
  color: #64748b;
  font-size: 13.5px;
}

.mcpvp-badge-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 600;
}

/* Table Header */
.mcpvp-table-header {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.th-rank {
  width: 65px;
  text-align: center;
  flex-shrink: 0;
}

.th-player {
  flex: 1 1 240px;
  padding-right: 14px;
}

.th-kits {
  width: 480px;
  text-align: left;
  padding-left: 6px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .th-kits { width: auto; flex: 1; }
}

/* Rows & Cards */
.mcpvp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mcpvp-row {
  display: flex;
  align-items: center;
  background: rgba(17, 20, 31, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 18px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  direction: rtl;
}

.mcpvp-row:hover {
  background: rgba(24, 28, 44, 0.95);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Rank Badges */
.mcpvp-rank-col {
  width: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mcpvp-rank-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.mcpvp-rank-badge.rank-gold {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #000;
  border: 1.5px solid #fef08a;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.6);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.mcpvp-rank-badge.rank-silver {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  color: #0f172a;
  border: 1.5px solid #fff;
  box-shadow: 0 0 18px rgba(203, 213, 225, 0.45);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.mcpvp-rank-badge.rank-bronze {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  border: 1.5px solid #fde68a;
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.5);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

/* Player Info */
.mcpvp-player-col {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 14px;
  direction: ltr;
  text-align: left;
}

.mcpvp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  image-rendering: pixelated;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(168, 85, 247, 0.35);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mcpvp-avatar:hover {
  transform: scale(1.08);
  border-color: #ec4899;
}

.mcpvp-player-details {
  display: flex;
  flex-direction: column;
}

.mcpvp-name-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.mcpvp-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.mcpvp-name-link:hover .mcpvp-name {
  color: #f472b6;
}

.mcpvp-arrow {
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mcpvp-name-link:hover .mcpvp-arrow {
  color: #ec4899;
  transform: translateX(3px);
}

.mcpvp-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.mcpvp-tier-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.mcpvp-tier-tag.high-tier-1, .mcpvp-tier-tag.mid-tier-1, .mcpvp-tier-tag.low-tier-1 {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.mcpvp-tier-tag.high-tier-2, .mcpvp-tier-tag.mid-tier-2, .mcpvp-tier-tag.low-tier-2 {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.mcpvp-tier-tag.high-tier-3, .mcpvp-tier-tag.mid-tier-3, .mcpvp-tier-tag.low-tier-3 {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.mcpvp-tier-tag.high-tier-4, .mcpvp-tier-tag.mid-tier-4, .mcpvp-tier-tag.low-tier-4 {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.mcpvp-tier-tag.tier-5 {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.mcpvp-tier-pts {
  font-size: 12px;
  color: #94a3b8;
}

/* Contributing Kits Grid */
.mcpvp-kits-col {
  width: 480px;
  flex-shrink: 0;
  direction: ltr;
}

.mcpvp-kits-grid {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
}

.mcpvp-kit-box {
  width: 46px;
  height: 54px;
  background: rgba(11, 13, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.mcpvp-kit-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.mcpvp-kit-box.highlighted-kit {
  border-color: #ec4899;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.45);
  background: rgba(236, 72, 153, 0.12);
}

.mcpvp-kit-img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.mcpvp-kit-tier {
  font-size: 10.5px;
  font-weight: 800;
  margin-top: 3px;
  line-height: 1;
}

.mcpvp-tier-line {
  position: absolute;
  bottom: 3px;
  left: 6px;
  right: 6px;
  height: 2.5px;
  border-radius: 2px;
}

/* Tier Color Mappings */
.tier-1 .mcpvp-kit-tier { color: #facc15; }
.tier-1 .mcpvp-tier-line { background: #eab308; box-shadow: 0 0 6px rgba(234, 179, 8, 0.8); }

.tier-2 .mcpvp-kit-tier { color: #38bdf8; }
.tier-2 .mcpvp-tier-line { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.8); }

.tier-3 .mcpvp-kit-tier { color: #fbbf24; }
.tier-3 .mcpvp-tier-line { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.8); }

.tier-4 .mcpvp-kit-tier { color: #c084fc; }
.tier-4 .mcpvp-tier-line { background: #a855f7; box-shadow: 0 0 6px rgba(168, 85, 247, 0.8); }

.tier-5 .mcpvp-kit-tier { color: #94a3b8; }
.tier-5 .mcpvp-tier-line { background: #64748b; }

.tier-unknown .mcpvp-kit-tier { color: #475569; }
.tier-unknown .mcpvp-tier-line { background: #334155; }

/* Empty state */
.mcpvp-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #94a3b8;
}

.mcpvp-empty-state svg {
  margin-bottom: 12px;
  color: #64748b;
}

/* ============================================================
   Profile Specific (Rankings Section + Chart)
   ============================================================ */

.mcpvp-rank-pill {
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
}

.mcpvp-profile-kits-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 12px;
  direction: ltr;
}

.mcpvp-profile-kit-card {
  background: rgba(11, 13, 21, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

.mcpvp-profile-kit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.mcpvp-pkit-icon-wrap {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.mcpvp-pkit-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.mcpvp-pkit-tier {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.mcpvp-pkit-name {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.mcpvp-profile-kit-card .mcpvp-tier-line {
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 3px;
}

.mcpvp-profile-kit-card.tier-1 .mcpvp-pkit-tier { color: #facc15; }
.mcpvp-profile-kit-card.tier-2 .mcpvp-pkit-tier { color: #38bdf8; }
.mcpvp-profile-kit-card.tier-3 .mcpvp-pkit-tier { color: #fbbf24; }
.mcpvp-profile-kit-card.tier-4 .mcpvp-pkit-tier { color: #c084fc; }
.mcpvp-profile-kit-card.tier-5 .mcpvp-pkit-tier { color: #94a3b8; }
.mcpvp-profile-kit-card.tier-unknown .mcpvp-pkit-tier { color: #475569; }

/* Timeline Filter Tabs in Profile */
.mcpvp-timeline-tabs {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 21, 33, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
  direction: ltr;
}

.mcpvp-time-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mcpvp-time-btn:hover {
  color: #fff;
}

.mcpvp-time-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

@media (max-width: 900px) {
  .mcpvp-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .mcpvp-kits-col {
    width: 100%;
    margin-top: 6px;
    justify-content: flex-start;
  }
  .mcpvp-kits-grid {
    justify-content: flex-start;
  }
}

/* ============================================================
   MCTIERS.GG STYLES (mctiers.gg/rankings/overall & kit boards)
   ============================================================ */

.mctiers-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.mctiers-tabs-container {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  direction: ltr;
}

.mctiers-tab {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mctiers-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px 6px 0 0;
}

.mctiers-tab.active {
  color: #fff;
  border-bottom-color: #facc15;
}

.mctiers-tab-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mctiers-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 16px;
  flex-wrap: wrap;
  direction: ltr;
}

.mctiers-header-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.3px;
}

.mctiers-header-sub {
  font-size: 13.5px;
  color: #94a3b8;
  margin-top: 4px;
}

.mctiers-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mctiers-info-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 16px;
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mctiers-info-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mctiers-server-box {
  background: rgba(18, 21, 33, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mctiers-server-box:hover {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.2);
}

.mctiers-server-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.mctiers-server-ip {
  font-size: 13px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Overall Table */
.mctiers-table {
  width: 100%;
  margin-top: 10px;
  direction: ltr;
}

.mctiers-th-row {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.mctiers-th-place { width: 65px; text-align: center; }
.mctiers-th-player { flex: 1; padding: 0 16px; }
.mctiers-th-region { width: 90px; text-align: center; }
.mctiers-th-tiers { width: 480px; text-align: right; }

.mctiers-row {
  display: flex;
  align-items: center;
  background: rgba(15, 18, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.mctiers-row:hover {
  background: rgba(22, 27, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.mctiers-badge-slot {
  width: 52px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  font-style: italic;
  flex-shrink: 0;
}

.mctiers-badge-slot.rank-1 {
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
  color: #000;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0% 100%);
  border-radius: 5px 0 0 5px;
  width: 48px;
  height: 38px;
}

.mctiers-badge-slot.rank-2 {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  color: #0f172a;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0% 100%);
  border-radius: 5px 0 0 5px;
  width: 48px;
  height: 38px;
}

.mctiers-badge-slot.rank-3 {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0% 100%);
  border-radius: 5px 0 0 5px;
  width: 48px;
  height: 38px;
}

.mctiers-badge-slot.rank-other {
  background: transparent;
  color: #8b949e;
  font-size: 17px;
  font-weight: 800;
  font-style: normal;
  width: 44px;
}

.mctiers-player-slot {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  min-width: 0;
}

.mctiers-avatar-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mctiers-avatar {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: transparent;
  border: none;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
  flex-shrink: 0;
}

.mctiers-player-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mctiers-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mctiers-name:hover {
  color: #38bdf8;
}

.mctiers-title-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
}

.mctiers-points-text {
  color: #64748b;
  font-weight: 500;
  font-size: 11.5px;
}

.mctiers-region-slot {
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mctiers-region-badge {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 5px;
}

.mctiers-tiers-slot {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* MCTiers Circular Disc Tier Items */
.mctiers-tier-disc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 30px;
}

.mctiers-tier-disc {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #121624;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.mctiers-tier-disc-item:hover .mctiers-tier-disc {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.mctiers-tier-disc-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.mctiers-tier-disc-code {
  font-size: 10px;
  font-weight: 800;
  margin-top: 3px;
  line-height: 1;
  letter-spacing: 0.2px;
  text-align: center;
}

.mctiers-no-tiers {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

/* 5-Column Kit Boards */
.mctiers-columns-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
  align-items: start;
  direction: ltr;
}

.mctiers-column {
  background: #111522;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.mctiers-col-header {
  padding: 11px 14px;
  font-size: 14.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.3px;
}

.mctiers-col-header.tier-1 {
  background: #543e14;
  color: #facc15;
  border-top: 2px solid #eab308;
}

.mctiers-col-header.tier-2 {
  background: #2b3644;
  color: #e2e8f0;
  border-top: 2px solid #94a3b8;
}

.mctiers-col-header.tier-3 {
  background: #462816;
  color: #fb923c;
  border-top: 2px solid #d97706;
}

.mctiers-col-header.tier-4 {
  background: #191f2c;
  color: #cbd5e1;
  border-top: 2px solid #334155;
}

.mctiers-col-header.tier-5 {
  background: #191f2c;
  color: #cbd5e1;
  border-top: 2px solid #334155;
}

.mctiers-col-body {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 75vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.mctiers-player-card {
  background: #181e2b;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 2.5px solid #475569;
  border-radius: 6px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mctiers-player-card:hover {
  background: #222a3d;
  border-color: rgba(255, 255, 255, 0.12);
}

.mctiers-player-card.subtier-ht {
  border-left-color: #3b82f6;
}

.mctiers-player-card.subtier-lt {
  border-left-color: #0284c7;
}

.mctiers-card-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

.mctiers-card-avatar {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  image-rendering: pixelated;
  flex-shrink: 0;
  background: transparent;
}

.mctiers-card-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mctiers-card-chevron {
  font-size: 13px;
  font-weight: 700;
  color: #526b94;
  flex-shrink: 0;
}

.mctiers-card-chevron.chevron-ht {
  color: #526b94;
}

.mctiers-card-chevron.chevron-lt {
  color: #526b94;
}

.mctiers-col-empty {
  padding: 12px;
  text-align: center;
  color: #475569;
}

/* Information Modal */
.mctiers-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mctiers-modal.active {
  display: flex;
}

.mctiers-modal-box {
  background: #0f131f;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  direction: rtl;
  text-align: right;
}

.mctiers-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.mctiers-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.mctiers-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
}

.mctiers-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.mctiers-modal-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.mctiers-modal-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 1100px) {
  .mctiers-columns-board {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .mctiers-th-tiers, .mctiers-tiers-slot {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .mctiers-th-tiers, .mctiers-tiers-slot {
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
  }
  .mctiers-row {
    flex-wrap: wrap;
  }
}

/* ============================================================
   Real-Time Live Rank Shift Indicators (10-Second Auto Fade)
   ============================================================ */
.mctiers-shift-container {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  vertical-align: middle;
}

.mctiers-rank-shift {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 9999px;
  line-height: 1.1;
  letter-spacing: -0.2px;
  animation: rankShiftPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: opacity 0.6s ease, transform 0.6s ease;
  user-select: none;
  direction: ltr;
}

.mctiers-rank-shift.shift-up {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #4ade80;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.4);
}

.mctiers-rank-shift.shift-down {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #f87171;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.mctiers-rank-shift.fade-out {
  opacity: 0 !important;
  transform: translateY(-4px) scale(0.9) !important;
  pointer-events: none;
}

@keyframes rankShiftPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Row Flash Highlight when Rank Moves */
.mctiers-row.row-shifted-up {
  animation: rowShiftUpGlow 2.8s ease-out;
}
.mctiers-row.row-shifted-down {
  animation: rowShiftDownGlow 2.8s ease-out;
}

@keyframes rowShiftUpGlow {
  0% {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.35);
  }
  100% {
    background: rgba(22, 27, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }
}

@keyframes rowShiftDownGlow {
  0% {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.35);
  }
  100% {
    background: rgba(22, 27, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }
}
