/* ==========================================================
   MCTiers Clone – Screenshot Perfect CSS
   ========================================================== */
:root {
  /* Colors from screenshot */
  --bg-dark: #10151c;
  /* Background deep navy */
  --bg-header: rgba(16, 21, 28, 0.95);
  --bg-tab-hover: #1a2230;
  --bg-container: #151a25;
  /* Panel background */
  --bg-row: #1a202d;
  /* Card row */
  --bg-row-alt: #171d28;
  /* Alt card row */
  --bg-first: rgba(245, 158, 11, 0.08);
  /* Gold glow for #1 */
  --bg-input: #192131;
  --text-main: #f8f9fa;
  --text-muted: #6b7280;
  --text-nav: #9ca3af;
  --text-tab: #9ca3af;

  --border-subtle: #252b36;
  --tier-gold: #eab308;
  --tier-silver: #9ca3af;
  --tier-bronze: #b45309;
  --tier-navy: #1e3a8a;
  --tier-dark: #1f2937;
  /* Specific Tier Badges (Pills) */
  --pill-ht1: #fbbf24;
  /* Yellowish */
  --pill-lt1: #bd900b;
  /* Darker Yellow */
  --pill-tt-lt1: #1f2937;
  /* text for bright yellow if needed */

  --pill-ht2: #ebf1b1;
  /* Silverish */
  --pill-lt2: #cac8ad;
  /* Silverish Grey */

  --pill-ht3: #fc7210;
  /* Orangish */
  --pill-lt3: #b33b0b;
  /* Darker Orange */

  --pill-ht4: #a84dfd;
  /* Purplish */
  --pill-lt4: #6e19b8;
  /* Darker Purple */

  --pill-ht5: #79808f;
  /* Grayish */
  --pill-lt5: #3e444d;
  /* Darker Grayish */

  /* Shared Base */
  --font-system: 'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-system);
  background: radial-gradient(circle at 10% 20%, #161e31 0%, #0c1017 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* ----------------------------------------------------------
   Layout & Container
   ---------------------------------------------------------- */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.content-wrapper {
  background: rgba(21, 26, 37, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 21, 28, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  color: var(--text-nav);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s;
}

.nav-item .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
}

.nav-item .nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-item.active {
  color: var(--text-main);
}

/* Search */
.search-wrapper {
  margin-left: auto;
  position: relative;
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input {
  width: 100%;
  height: 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0 36px 0 40px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.search-shortcut {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(55, 65, 81, 0.8);
  color: #9ca3af;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: rgba(55, 65, 81, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 4px;
  color: #9ca3af;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.search-clear:hover {
  background: rgba(75, 85, 99, 0.9);
  color: var(--text-main);
}

/* ----------------------------------------------------------
   Tabs Navigation (Top of screen)
   ---------------------------------------------------------- */
.tabs-nav {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  /* Hide scrollbar */
  position: relative;
  transition: opacity 0.3s ease;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0.6rem 1.2rem 0.5rem;
  min-width: 80px;
  height: 60px;
  color: var(--text-tab);
  transition: color 0.25s ease, background 0.25s ease;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  gap: 0.3rem;
  position: relative;
}

.tab-btn:hover {
  background: var(--bg-tab-hover);
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--text-main);
  background: var(--bg-tab-hover);
}

/* Gamemode Tab Active Gradients with Animation */
.tab-btn-gamemode-overall.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(217, 119, 6, 0.3), rgba(255, 255, 255, 0.2));
  animation: gradientFadeIn 0.5s ease-out;
}

.tab-btn-gamemode-vanilla.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(255, 255, 255, 0.2));
  animation: gradientFadeIn 0.5s ease-out;
}

.tab-btn-gamemode-uhc.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(127, 29, 29, 0.3), rgba(0, 0, 0, 0.2));
  animation: gradientFadeIn 0.5s ease-out;
}

.tab-btn-gamemode-pot.active {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.4), rgba(255, 255, 255, 0.2));
  animation: gradientFadeIn 0.5s ease-out;
}

.tab-btn-gamemode-nethop.active {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.4), rgba(107, 33, 168, 0.3));
  animation: gradientFadeIn 0.5s ease-out;
}

.tab-btn-gamemode-smp.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(20, 83, 45, 0.3), rgba(255, 255, 255, 0.2));
  animation: gradientFadeIn 0.5s ease-out;
}

.tab-btn-gamemode-sword.active {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.4), rgba(255, 255, 255, 0.2));
  animation: gradientFadeIn 0.5s ease-out;
}

.tab-btn-gamemode-axe.active {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(75, 85, 99, 0.3), rgba(0, 0, 0, 0.2));
  animation: gradientFadeIn 0.5s ease-out;
}

.tab-btn-gamemode-mace.active {
  background: linear-gradient(135deg, rgba(75, 85, 99, 0.5), rgba(156, 163, 175, 0.3), rgba(255, 255, 255, 0.3));
  animation: gradientFadeIn 0.5s ease-out;
}

@keyframes gradientFadeIn {
  0% {
    opacity: 0;
    filter: brightness(1.5);
  }
  50% {
    opacity: 0.5;
    filter: brightness(1.2);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 5;
}

.tab-icon {
  margin-bottom: 2px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-icon>* {
  width: 24px !important;
  height: 24px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-icon svg,
.tab-icon>div svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px;
  max-height: 24px;
  display: block;
  flex-shrink: 0;
}

.tab-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* ----------------------------------------------------------
   Content Header (Info & PVP Club)
   ---------------------------------------------------------- */
.content-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-btn {
  display: flex;
  align-items: center;
  background: var(--bg-row-alt);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.server-banner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #111822;
  border: 1px solid var(--border-subtle);
  padding: 4px;
  padding-left: 6px;
  border-radius: 8px;
}

.server-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.server-ip {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.server-title {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.server-address {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.server-discord {
  color: #5865F2;
  padding: 0 4px;
}

/* ----------------------------------------------------------
   Overall Layout (Vertical Rows)
   ---------------------------------------------------------- */
.overall-table-header {
  display: grid;
  grid-template-columns: 48px minmax(200px, 1fr) 70px 2fr;
  padding: 0 1rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.player-row {
  display: grid;
  grid-template-columns: 48px minmax(200px, 1fr) 70px 2fr;
  background: rgba(26, 32, 45, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  align-items: center;
  padding: 0.6rem 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.player-row:hover {
  background: rgba(35, 43, 60, 0.85);
  transform: translateX(-400px) translateY(-2px) scale(1.005);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.player-row:nth-child(even) {
  background: rgba(22, 28, 40, 0.7);
}

/* Top 3 Glow Effects */
@keyframes pulseGlow1 {
  0% {
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  }

  100% {
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
  }
}

@keyframes pulseGlow2 {
  0% {
    box-shadow: 0 0 8px rgba(156, 163, 175, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(156, 163, 175, 0.4);
  }

  100% {
    box-shadow: 0 0 8px rgba(156, 163, 175, 0.2);
  }
}

@keyframes pulseGlow3 {
  0% {
    box-shadow: 0 0 8px rgba(180, 83, 9, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(180, 83, 9, 0.4);
  }

  100% {
    box-shadow: 0 0 8px rgba(180, 83, 9, 0.2);
  }
}

.player-row.row-top-1 {
  animation: pulseGlow1 3s infinite;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.player-row.row-top-2 {
  animation: pulseGlow2 3s infinite;
  border: 1px solid rgba(156, 163, 175, 0.4);
  background: rgba(156, 163, 175, 0.05);
}

.player-row.row-top-3 {
  animation: pulseGlow3 3s infinite;
  border: 1px solid rgba(180, 83, 9, 0.4);
  background: rgba(180, 83, 9, 0.05);
}

/* Rank Styling */
.row-rank {
  font-size: 1.6rem;
  font-weight: 900;
  font-style: italic;
  text-align: left;
}

.rank-1 {
  color: #fff;
  text-shadow: -2px 2px 0 #d97706, 2px -2px 0 #d97706, -2px -2px 0 #d97706, 2px 2px 0 #d97706;
}

.rank-2 {
  color: #fff;
  text-shadow: -2px 2px 0 #9ca3af, 2px -2px 0 #9ca3af, -2px -2px 0 #9ca3af, 2px 2px 0 #9ca3af;
}

.rank-3 {
  color: #fff;
  text-shadow: -2px 2px 0 #b45309, 2px -2px 0 #b45309, -2px -2px 0 #b45309, 2px 2px 0 #b45309;
}

.rank-other {
  color: #e5e7eb;
  font-size: 1.4rem;
}

/* Avatar + Info */
.row-info-col {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.row-avatar {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.row-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.row-subtext {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.diamond-icon {
  color: #f59e0b;
  font-size: 0.6rem;
}

/* Simplified diamond */
/* Region */
.row-region-col {
  display: flex;
  align-items: center;
}

.region-badge {
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 6px;
  background: #27272a;
  color: #fff;
  /* fallback */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.region-badge.na {
  background: #7f1d1d;
  color: #fecaca;
  border-color: #991b1b;
}

.region-badge.eu {
  background: #14532d;
  color: #bbf7d0;
  border-color: #166534;
}

/* Overall Mode Gamemode Tiers Grid */
.row-tiers-col {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.tier-icon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 34px;
}

.tier-icon-group svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

/* Tier Pills (HT1, LT3, etc.) */
.tier-pill {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 99px;
  padding: 1px 5px;
  width: 100%;
  text-align: center;
  color: white;
  padding: 0 8px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  color: white;
}

.pill-ht1 {
  background: var(--pill-ht1);
}

.pill-lt1 {
  background: var(--pill-lt1);
  color: var(--pill-tt-lt1);
}

.pill-ht2 {
  background: var(--pill-ht2);
}

.pill-lt2 {
  background: var(--pill-lt2);
}

.pill-ht3 {
  background: var(--pill-ht3);
}

.pill-lt3 {
  background: var(--pill-lt3);
}

.pill-ht4 {
  background: var(--pill-ht4);
}

/* Missing Tier Badge / Placeholder */
.tier-pill.empty {
  background: transparent;
  color: #4b5563;
  font-weight: 400;
}

.retired-tier {
  opacity: 0.7;
  filter: saturate(0.2);
}

.retired-tier .tier-pill {
  border: 1px dashed rgba(255, 255, 255, 0.4) !important;
}

.peak-tier {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}

.peak-tier .tier-pill {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 1px;
}

/* ----------------------------------------------------------
   Gamemode Layout (5 Columns Grid)
   ---------------------------------------------------------- */
.gamemode-grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tier-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(23, 29, 40, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.tier-col-header {
  padding: 1rem 0.5rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.tier-col-header svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

/* Column specific headers with rich gradients */
.header-t1 {
  background: linear-gradient(135deg, #d97706, #b45309);
}

/* Gold */
.header-t2 {
  background: linear-gradient(135deg, #9ca3af, #4b5563);
}

/* Silver */
.header-t3 {
  background: linear-gradient(135deg, #b45309, #78350f);
}

/* Bronze */
.header-t4 {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

/* Blue */
.header-t5 {
  background: linear-gradient(135deg, #4b5563, #1f2937);
}

/* Slate */
.tier-list {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.gm-player-row {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gm-player-row:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.gm-player-row.rank-1-highlight {
  background: linear-gradient(to right, rgba(76, 29, 149, 0.4), rgba(255, 255, 255, 0.02));
  border-left: 3px solid #8b5cf6;
}

.gm-row-avatar {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  margin-right: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.gm-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gm-row-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.gm-row-points {
  font-size: 0.65rem;
  color: #9ca3af;
  font-weight: 500;
}

.gm-row-region {
  transform: scale(0.85);
  transform-origin: right center;
  margin-left: auto;
}

.gm-row-badge {
  transform: scale(0.85);
  transform-origin: right center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 38px;
  width: auto;
  min-width: 44px;
  min-height: 28px;
  padding: 2px 4px;
  padding: 2px 6px;
  border-radius: 6px;
  gap: 1px;
  justify-content: center;
}

.mctiers-tier-badge .tier-icon svg {
  width: 100%;
  height: 100%;
  max-width: 14px;
  max-height: 14px;
  max-width: 22px;
  max-height: 22px;
  display: block;
  margin: auto;
}

.gm-row-badge .tier-pill {
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  color: white;
  line-height: 1;
  padding: 0;
  background: transparent !important;
}

.gm-row-badge .tier-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gm-row-badge svg,
.gm-row-badge .tier-icon svg {
  width: 12px;
  height: 12px;
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
}

/* Tier pill backgrounds applied to the badge container instead */
.gm-row-badge.pill-ht1 {
  background: var(--pill-ht1);
}

.gm-row-badge.pill-lt1 {
  background: var(--pill-lt1);
}

.gm-row-badge.pill-lt1 .tier-pill {
  color: var(--pill-tt-lt1);
}

.gm-row-badge.pill-ht2 {
  background: var(--pill-ht2);
}

.gm-row-badge.pill-lt2 {
  background: var(--pill-lt2);
}

.gm-row-badge.pill-ht3 {
  background: var(--pill-ht3);
}

.gm-row-badge.pill-lt3 {
  background: var(--pill-lt3);
}

.gm-row-badge.pill-ht4 {
  background: var(--pill-ht4);
}

.gm-row-badge.pill-lt4 {
  background: var(--pill-lt4);
}

.gm-row-badge.pill-ht5 {
  background: var(--pill-ht5);
}

.gm-row-badge.pill-lt5 {
  background: var(--pill-lt5);
}

/* ----------------------------------------------------------
   Tier Progression Map (Home Page)
   ---------------------------------------------------------- */
.tier-progression-map {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-top: 1rem;
}

.tier-progression-map::-webkit-scrollbar {
  width: 6px;
}

.tier-progression-map::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.tier-progression-map::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.tier-progression-map .prog-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(21, 26, 37, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.tier-progression-map .prog-step:hover {
  transform: translateX(4px);
  filter: brightness(1.2);
}

.tier-progression-map .prog-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Global Tier Pill Neon System */
.pill-ht1 {
  background: rgba(251, 191, 36, 0.15) !important;
  border: 1px solid var(--pill-ht1) !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5), inset 0 0 4px rgba(251, 191, 36, 0.2);
  color: var(--pill-ht1) !important;
  text-shadow: 0 1px 10px rgba(251, 191, 36, 0.7);
}
.pill-lt1 {
  background: rgba(189, 144, 11, 0.15) !important;
  border: 1px solid var(--pill-lt1) !important;
  box-shadow: 0 0 12px rgba(189, 144, 11, 0.5), inset 0 0 4px rgba(189, 144, 11, 0.2);
  color: var(--pill-lt1) !important;
  text-shadow: 0 1px 10px rgba(189, 144, 11, 0.7);
}

.pill-ht2 {
  background: rgba(235, 241, 177, 0.15) !important;
  border: 1px solid var(--pill-ht2) !important;
  box-shadow: 0 0 12px rgba(235, 241, 177, 0.6), inset 0 0 4px rgba(235, 241, 177, 0.2);
  color: var(--pill-ht2) !important;
  text-shadow: 0 1px 10px rgba(235, 241, 177, 0.8);
}
.pill-lt2 {
  background: rgba(202, 200, 173, 0.15) !important;
  border: 1px solid var(--pill-lt2) !important;
  box-shadow: 0 0 12px rgba(202, 200, 173, 0.5), inset 0 0 4px rgba(202, 200, 173, 0.2);
  color: var(--pill-lt2) !important;
  text-shadow: 0 1px 10px rgba(202, 200, 173, 0.7);
}

.pill-ht3 {
  background: rgba(252, 114, 16, 0.15) !important;
  border: 1px solid var(--pill-ht3) !important;
  box-shadow: 0 0 12px rgba(252, 114, 16, 0.6), inset 0 0 4px rgba(252, 114, 16, 0.2);
  color: var(--pill-ht3) !important;
  text-shadow: 0 1px 10px rgba(252, 114, 16, 0.8);
}
.pill-lt3 {
  background: rgba(179, 59, 11, 0.15) !important;
  border: 1px solid var(--pill-lt3) !important;
  box-shadow: 0 0 12px rgba(179, 59, 11, 0.5), inset 0 0 4px rgba(179, 59, 11, 0.2);
  color: var(--pill-lt3) !important;
  text-shadow: 0 1px 10px rgba(179, 59, 11, 0.7);
}

.pill-ht4 {
  background: rgba(168, 77, 253, 0.15) !important;
  border: 1px solid var(--pill-ht4) !important;
  box-shadow: 0 0 12px rgba(168, 77, 253, 0.6), inset 0 0 4px rgba(168, 77, 253, 0.2);
  color: var(--pill-ht4) !important;
  text-shadow: 0 1px 10px rgba(168, 77, 253, 0.8);
}
.pill-lt4 {
  background: rgba(110, 25, 184, 0.15) !important;
  border: 1px solid var(--pill-lt4) !important;
  box-shadow: 0 0 12px rgba(110, 25, 184, 0.5), inset 0 0 4px rgba(110, 25, 184, 0.2);
  color: var(--pill-lt4) !important;
  text-shadow: 0 1px 10px rgba(110, 25, 184, 0.7);
}

.pill-ht5 {
  background: rgba(121, 128, 143, 0.15) !important;
  border: 1px solid var(--pill-ht5) !important;
  box-shadow: 0 0 12px rgba(121, 128, 143, 0.5), inset 0 0 4px rgba(121, 128, 143, 0.2);
  color: var(--pill-ht5) !important;
  text-shadow: 0 1px 10px rgba(121, 128, 143, 0.7);
}
.pill-lt5 {
  background: rgba(62, 68, 77, 0.15) !important;
  border: 1px solid var(--pill-lt5) !important;
  box-shadow: 0 0 12px rgba(62, 68, 77, 0.5), inset 0 0 4px rgba(62, 68, 77, 0.2);
  color: var(--pill-lt5) !important;
  text-shadow: 0 1px 10px rgba(62, 68, 77, 0.7);
}


/* ----------------------------------------------------------
   Loading & Helpers
   ---------------------------------------------------------- */
.loading-spinner {
  padding: 4rem 0;
  text-align: center;
}

.spinner-ring {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-msg {
  padding: 1rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid #7f1d1d;
  color: #fca5a5;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.load-more-btn {
  width: 100%;
  padding: 1rem;
  background: var(--bg-row);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  margin-top: 1rem;
  transition: background 0.15s;
}

/* ----------------------------------------------------------
   Home Page Professional Styles
   ---------------------------------------------------------- */
.home-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-header {
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tier Testing Process Styles */
.testing-info {
  position: relative;
  overflow: hidden;
}

.testing-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  margin-top: 1rem;
  padding-left: 0.5rem;
}

/* Vertical Timeline Line */
.testing-steps::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1) 15%, rgba(255, 255, 255, 0.1) 85%, transparent);
  z-index: 0;
}

.test-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.test-step:hover {
  transform: translateX(6px);
}

.step-num {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--bg-dark);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.test-step:nth-child(1) .step-num {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.test-step:nth-child(2) .step-num {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.test-step:nth-child(3) .step-num {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.test-step:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 0 20px currentColor;
  /* Dynamic glow matching the step color */
}

.step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  letter-spacing: 0.2px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

.home-hero-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(21, 26, 37, 0.6) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.home-hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: transparent;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all 0.3s ease;
  z-index: -1;
}

.home-hero-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 
    0 0 30px rgba(245, 158, 11, 0.15),
    0 0 60px rgba(245, 158, 11, 0.1),
    inset 0 0 30px rgba(245, 158, 11, 0.05);
}

.home-hero-card:hover::before {
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.4), 0 0 80px rgba(245, 158, 11, 0.2);
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.hero-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.hero-title .accent {
  color: #f59e0b;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #9ca3af;
}

.info-card {
  background: rgba(26, 32, 45, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gamemode-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gamemode-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  cursor: pointer;
  position: relative;
}

.gamemode-card .card-action {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 800;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-10px);
}

.gamemode-card:hover .card-action {
  opacity: 1;
  transform: translateX(0);
}

/* Gamemode Card Border & Glow - Default State */
.gamemode-vanilla {
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.3), 0 0 30px rgba(236, 72, 153, 0.1);
}

.gamemode-uhc {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3), 0 0 30px rgba(239, 68, 68, 0.1);
}

.gamemode-pot {
  border-color: rgba(153, 27, 27, 0.6);
  box-shadow: 0 0 15px rgba(153, 27, 27, 0.3), 0 0 30px rgba(153, 27, 27, 0.1);
}

.gamemode-nethop {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3), 0 0 30px rgba(168, 85, 247, 0.1);
}

.gamemode-smp {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3), 0 0 30px rgba(34, 197, 94, 0.1);
}

.gamemode-sword {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.3), 0 0 30px rgba(96, 165, 250, 0.1);
}

.gamemode-axe {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3), 0 0 30px rgba(59, 130, 246, 0.1);
}

.gamemode-mace {
  border-color: rgba(107, 114, 128, 0.6);
  box-shadow: 0 0 15px rgba(107, 114, 128, 0.3), 0 0 30px rgba(107, 114, 128, 0.1);
}

/* Gamemode Card Hover Gradient Background */
.gamemode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gamemode-card:hover::before {
  opacity: 1;
}

.gamemode-vanilla:hover::before {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(255, 255, 255, 0.2));
}

.gamemode-uhc:hover::before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(127, 29, 29, 0.3), rgba(0, 0, 0, 0.2));
}

.gamemode-pot:hover::before {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.4), rgba(255, 255, 255, 0.2));
}

.gamemode-nethop:hover::before {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.4), rgba(107, 33, 168, 0.3));
}

.gamemode-smp:hover::before {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(20, 83, 45, 0.3), rgba(255, 255, 255, 0.2));
}

.gamemode-sword:hover::before {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.4), rgba(255, 255, 255, 0.2));
}

.gamemode-axe:hover::before {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(75, 85, 99, 0.3), rgba(0, 0, 0, 0.2));
}

.gamemode-mace:hover::before {
  background: linear-gradient(135deg, rgba(75, 85, 99, 0.5), rgba(156, 163, 175, 0.3), rgba(255, 255, 255, 0.3));
}

.info-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.info-card-text {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.6;
}

.home-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.discord-cta-card {
  background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
  border-radius: 16px;
  padding: 2.5rem;
  color: white;
  text-align: center;
}

.cta-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #5865F2;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.discord-btn:hover {
  background: #f8f9ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #4752c4;
}

.discord-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background: #ebedff;
}

.load-more-btn:hover {
  background: var(--bg-row-alt);
}

/* Responsive Grid adjustment */
@media (max-width: 1024px) {
  .gamemode-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .overall-table-header {
    grid-template-columns: 48px minmax(140px, 1fr) 50px 1.5fr;
  }

  .player-row {
    grid-template-columns: 48px minmax(140px, 1fr) 50px 1.5fr;
  }
}

@media (max-width: 640px) {
  .gamemode-grid-container {
    grid-template-columns: 1fr;
  }

  .overall-table-header {
    display: none;
  }

  .player-row {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
  }

  .row-region-col {
    grid-column: 1 / -1;
  }

  .row-tiers-col {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }
}

/* ----------------------------------------------------------
   Tier Tooltip Styles
   ---------------------------------------------------------- */
.tier-tooltip-container {
  background: rgba(21, 26, 37, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  min-width: 140px;
  pointer-events: none;
}

.tier-tooltip {
  color: #fff;
  font-family: var(--font-system);
}

.tier-tooltip .tooltip-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f59e0b;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-tooltip .tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.tier-tooltip .tooltip-row:last-child {
  margin-bottom: 0;
}

.tier-tooltip .tooltip-label {
  color: #9ca3af;
  font-weight: 500;
}

.tier-tooltip .tooltip-value {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
}

/* Tier colors for tooltip values */
.tier-tooltip .tier-ht1,
.tier-tooltip .tier-lt1 {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}

.tier-tooltip .tier-ht2,
.tier-tooltip .tier-lt2 {
  background: linear-gradient(135deg, #9ca3af, #4b5563);
  color: #fff;
}

.tier-tooltip .tier-ht3,
.tier-tooltip .tier-lt3 {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #fff;
}

.tier-tooltip .tier-ht4,
.tier-tooltip .tier-lt4 {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: #fff;
}

.tier-tooltip .tier-ht5,
.tier-tooltip .tier-lt5 {
  background: linear-gradient(135deg, #4b5563, #1f2937);
  color: #9ca3af;
}

.tier-tooltip .tier-na {
  background: rgba(255, 255, 255, 0.1);
  color: #6b7280;
}

/* Tab icon styles */
.tab-icon-img {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

/* Tier icon group hover effects */
.tier-icon-group {
  cursor: help;
  position: relative;
}

.gm-player-row {
  cursor: help;
}

/* ----------------------------------------------------------
   MCTiers Style Player Row Layout
   ---------------------------------------------------------- */
.mctiers-player-row {
  display: grid;
  grid-template-columns: 50px 90px 1fr 60px auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(30, 35, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mctiers-player-row:hover {
  background: rgba(45, 50, 65, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Overall Column Headers */
.overall-headers {
  display: grid;
  grid-template-columns: 50px 90px 1fr 60px auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px 10px;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.overall-headers .header-rank {
  text-align: center;
}

.overall-headers .header-player {
  padding-left: 0;
}

.overall-headers .header-region {
  text-align: center;
}

.overall-headers .header-tiers {
  text-align: right;
  padding-right: 8px;
}

/* Top 3 rankings styling */
.mctiers-player-row.top-rank-1 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(30, 35, 48, 0.8) 100%);
  border-color: rgba(251, 191, 36, 0.3);
}

.mctiers-player-row.top-rank-2 {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.15) 0%, rgba(30, 35, 48, 0.8) 100%);
  border-color: rgba(156, 163, 175, 0.3);
}

.mctiers-player-row.top-rank-3 {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.15) 0%, rgba(30, 35, 48, 0.8) 100%);
  border-color: rgba(180, 83, 9, 0.3);
}

/* Hide the original player-rank since we now show rank inside shimmer */
.player-rank {
  display: none;
}

/* Extend shimmer wrapper to span rank column + skin column (cols 1–2) */
.mctiers-player-row.top-rank-1 .player-skin-wrapper,
.mctiers-player-row.top-rank-2 .player-skin-wrapper,
.mctiers-player-row.top-rank-3 .player-skin-wrapper,
.mctiers-player-row:not(.top-rank-1):not(.top-rank-2):not(.top-rank-3) .player-skin-wrapper {
  grid-column: 1 / 3;
  position: relative;
  min-height: 62px;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  margin-left: 0;
}

/* Shimmer SVG fills the entire wrapper as a background layer */
.mctiers-player-row.top-rank-1 .top3-bg,
.mctiers-player-row.top-rank-2 .top3-bg,
.mctiers-player-row.top-rank-3 .top3-bg,
.mctiers-player-row .other-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  z-index: 1;
  left: 0;
  right: 0;
}

.mctiers-player-row .other-bg {
  opacity: 0.4;
}

/* Rank number - positioned on the left side of shimmer */
.rank-in-shimmer {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  font-family: var(--font-display);
  pointer-events: none;
}

/* 3D Bust Skin - positioned on the right side of shimmer */
.mctiers-player-row.top-rank-1 .player-skin,
.mctiers-player-row.top-rank-2 .player-skin,
.mctiers-player-row.top-rank-3 .player-skin,
.mctiers-player-row:not(.top-rank-1):not(.top-rank-2):not(.top-rank-3) .player-skin {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
}

.player-skin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

.player-skin img:hover {
  transform: scale(1.05);
}

/* Player Info */
.player-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-system);
}

.player-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.player-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.title-icon-small {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.rank-badge {
  font-weight: 700;
  font-size: 0.8rem;
}

.points {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  font-size: 0.75rem;
}

/* Fix for hidden attribute being overridden by display: flex */
[hidden] {
  display: none !important;
}

/* ----------------------------------------------------------
   Information Modal Styles
   ---------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2000;
  pointer-events: auto;
}

.info-modal {
  position: absolute;
  background: #111822;
  width: 320px;
  max-height: 80vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  animation: modalScale 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.2);
  z-index: 2100;
  pointer-events: auto;
}

.discord-icon-img {
  width: 18px;
  height: 18px;
  display: block;
}

@keyframes modalScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-nav {
  display: flex;
  padding: 10px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-tab-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
  transition: all 0.2s;
  background: transparent;
  border: 1px solid transparent;
}

.modal-tab-btn:hover {
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.03);
}

.modal-tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-content {
  padding: 20px;
  overflow-y: auto;
  color: #fff;
}

.tab-pane h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.underlined {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Titles List Styles */
.titles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.title-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.title-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.title-text p {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Points Grid Styles */
.points-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.points-tier-group {
  position: relative;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
  padding-left: 15px;
}

.points-header {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.points-rows {
  display: flex;
  gap: 8px;
}

.points-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.points-pill span {
  color: #f59e0b;
}

/* Tier Test Styles */
.test-process-description {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #9ca3af;
}

.test-process-description p {
  margin-bottom: 12px;
}

.accent-link {
  color: #3b82f6;
  text-decoration: underline;
}

.channel-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
  color: #d1d5db;
}

.final-wish {
  margin-top: 15px;
  font-weight: 700;
  color: #fff;
}

/* Testing Kit Styles */
.testing-kit-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

.testing-kit-image {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

/* Region Tag */
.player-region {
  display: flex;
  justify-content: center;
}

.region-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.region-tag.na {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.region-tag.eu {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.region-tag.as {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.region-tag.sa {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.region-tag.oc {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

/* Player Tiers - Right Side */
.player-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* MCTiers Style Tier Badges */
.mctiers-tier-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: help;
  transition: all 0.15s ease;
  min-width: 52px;
}

.mctiers-tier-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mctiers-tier-badge .tier-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-skin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.22s linear;
  backface-visibility: hidden;
}

.player-skin img:hover {
  transform: scale(1.06) translateZ(4px) rotateY(-6deg);
}

.mctiers-tier-badge .tier-icon svg {
  width: 100%;
  height: 100%;
  max-width: 14px;
  max-height: 14px;
  display: block;
  margin: auto;
}

.mctiers-tier-badge .tier-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* MCTiers Style Tier Badges - Overall Tab (Bigger) */
.mctiers-player-row .mctiers-tier-badge {
  min-width: 52px;
  padding: 8px 10px;
}

.mctiers-player-row .mctiers-tier-badge .tier-icon {
  width: 20px;
  height: 20px;
}

.mctiers-player-row .mctiers-tier-badge .tier-icon svg {
  max-width: 20px;
  max-height: 20px;
}

/* Gamemode Column Tier Pills */
.gm-row-badge .tier-pill,
.gamemode-col .tier-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 1px 5px !important;
  min-width: 44px !important;
}

.gm-row-badge .tier-pill svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.gm-row-badge .tier-text {
  font-size: 0.7rem;
  font-weight: 700;
}

.gamemode-col .mctiers-tier-badge {
  min-width: 54px;
  padding: 5px 10px;
  flex-direction: row;
  gap: 0;
}

.gamemode-col .mctiers-tier-badge .tier-icon {
  width: 18px;
  height: 18px;
  order: 0;
}

.gamemode-col .mctiers-tier-badge .tier-icon svg {
  max-width: 18px;
  max-height: 18px;
}

.gamemode-col .mctiers-tier-badge .tier-label {
  font-size: 0.7rem;
  order: 0;
}

/* Tier Colors with Glow Effects - HT (High Tier) - Overall Tab */
.mctiers-tier-badge.tier-ht1 {
  background: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.6);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.4), 0 0 30px rgba(255, 193, 7, 0.2);
}

.mctiers-tier-badge.tier-ht1 .tier-label {
  color: #ffc107;
}

.mctiers-tier-badge.tier-ht2 {
  background: rgba(229, 231, 235, 0.25);
  border-color: rgba(229, 231, 235, 0.6);
  box-shadow: 0 0 15px rgba(229, 231, 235, 0.4), 0 0 30px rgba(229, 231, 235, 0.2);
}

.mctiers-tier-badge.tier-ht2 .tier-label {
  color: #e5e7eb;
}

.mctiers-tier-badge.tier-ht3 {
  background: rgba(249, 115, 22, 0.25);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4), 0 0 30px rgba(249, 115, 22, 0.2);
}

.mctiers-tier-badge.tier-ht3 .tier-label {
  color: #f97316;
}

.mctiers-tier-badge.tier-ht4 {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
}

.mctiers-tier-badge.tier-ht4 .tier-label {
  color: #8b5cf6;
}

.mctiers-tier-badge.tier-ht5 {
  background: rgba(107, 114, 128, 0.25);
  border-color: rgba(107, 114, 128, 0.6);
  box-shadow: 0 0 15px rgba(107, 114, 128, 0.4), 0 0 30px rgba(107, 114, 128, 0.2);
}

.mctiers-tier-badge.tier-ht5 .tier-label {
  color: #6b7280;
}

/* Tier Colors with Glow Effects - LT (Low Tier) - Overall Tab */
.mctiers-tier-badge.tier-lt1 {
  background: rgba(253, 186, 116, 0.2);
  border-color: rgba(253, 186, 116, 0.5);
  box-shadow: 0 0 12px rgba(253, 186, 116, 0.3), 0 0 24px rgba(253, 186, 116, 0.15);
}

.mctiers-tier-badge.tier-lt1 .tier-label {
  color: #fdba74;
}

.mctiers-tier-badge.tier-lt2 {
  background: rgba(209, 213, 219, 0.2);
  border-color: rgba(209, 213, 219, 0.5);
  box-shadow: 0 0 12px rgba(209, 213, 219, 0.3), 0 0 24px rgba(209, 213, 219, 0.15);
}

.mctiers-tier-badge.tier-lt2 .tier-label {
  color: #d1d5db;
}

.mctiers-tier-badge.tier-lt3 {
  background: rgba(251, 146, 60, 0.2);
  border-color: rgba(251, 146, 60, 0.5);
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.3), 0 0 24px rgba(251, 146, 60, 0.15);
}

.mctiers-tier-badge.tier-lt3 .tier-label {
  color: #fb923c;
}

.mctiers-tier-badge.tier-lt4 {
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.3), 0 0 24px rgba(167, 139, 250, 0.15);
}

.mctiers-tier-badge.tier-lt4 .tier-label {
  color: #a78bfa;
}

.mctiers-tier-badge.tier-lt5 {
  background: rgba(156, 163, 175, 0.2);
  border-color: rgba(156, 163, 175, 0.5);
  box-shadow: 0 0 12px rgba(156, 163, 175, 0.3), 0 0 24px rgba(156, 163, 175, 0.15);
}

.mctiers-tier-badge.tier-lt5 .tier-label {
  color: #9ca3af;
}

/* Retired Tiers - Gray Glow, Dimmed */
.mctiers-tier-badge.retired-tier {
  opacity: 0.6;
  filter: grayscale(0.5);
  background: rgba(100, 100, 100, 0.15) !important;
  border-color: rgba(100, 100, 100, 0.5) !important;
  box-shadow: 0 0 12px rgba(100, 100, 100, 0.3) !important;
}

.mctiers-tier-badge.retired-tier .tier-label {
  color: #9ca3af !important;
}

.mctiers-tier-badge.peak-tier {
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

/* Tier Pills - Gamemode Column Colors */
.tier-pill {
  border-radius: 9px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 6px;
  min-width: 40px;
  font-weight: 700;
  line-height: 1;
}

.tier-pill.pill-ht1 {
  background: rgba(255, 193, 7, 0.25) !important;
  border: 1px solid rgba(255, 193, 7, 0.6);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
  color: #ffc107;
}

.tier-pill.pill-lt1 {
  background: rgba(253, 186, 116, 0.2) !important;
  border: 1px solid rgba(253, 186, 116, 0.5);
  box-shadow: 0 0 8px rgba(253, 186, 116, 0.3);
  color: #fdba74;
}

.tier-pill.pill-ht2 {
  background: rgba(229, 231, 235, 0.15) !important;
  border: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: 0 0 8px rgba(229, 231, 235, 0.3);
  color: #e5e7eb;
}

.tier-pill.pill-lt2 {
  background: rgba(209, 213, 219, 0.12) !important;
  border: 1px solid rgba(209, 213, 219, 0.4);
  box-shadow: 0 0 6px rgba(209, 213, 219, 0.2);
  color: #d1d5db;
}

.tier-pill.pill-ht3 {
  background: rgba(249, 115, 22, 0.15) !important;
  border: 1px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.3);
  color: #f97316;
}

.tier-pill.pill-lt3 {
  background: rgba(251, 146, 60, 0.12) !important;
  border: 1px solid rgba(251, 146, 60, 0.4);
  box-shadow: 0 0 6px rgba(251, 146, 60, 0.2);
  color: #fb923c;
}

.tier-pill.pill-ht4 {
  background: rgba(139, 92, 246, 0.15) !important;
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
  color: #8b5cf6;
}

.tier-pill.pill-lt4 {
  background: rgba(167, 139, 250, 0.12) !important;
  border: 1px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.2);
  color: #a78bfa;
}

.tier-pill.pill-ht5 {
  background: rgba(107, 114, 128, 0.15) !important;
  border: 1px solid rgba(107, 114, 128, 0.5);
  box-shadow: 0 0 8px rgba(107, 114, 128, 0.3);
  color: #6b7280;
}

.tier-pill.pill-lt5 {
  background: rgba(156, 163, 175, 0.12) !important;
  border: 1px solid rgba(156, 163, 175, 0.4);
  box-shadow: 0 0 6px rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}

/* Retired tier pills - gray glow */
.tier-pill.retired-tier {
  opacity: 0.6;
  filter: grayscale(0.5);
  background: rgba(100, 100, 100, 0.15) !important;
  border-color: rgba(100, 100, 100, 0.5) !important;
  box-shadow: 0 0 8px rgba(100, 100, 100, 0.3) !important;
  color: #9ca3af !important;
}

.mctiers-tier-badge.retired-tier {
  opacity: 0.6;
  filter: grayscale(0.3);
}

.mctiers-tier-badge.peak-tier {
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .mctiers-player-row {
    grid-template-columns: 40px 70px 1fr 50px auto;
    gap: 12px;
    padding: 10px 16px;
  }

  .player-skin {
    width: 70px;
    height: 70px;
  }

  .player-tiers {
    gap: 6px;
  }

  .mctiers-tier-badge {
    min-width: 42px;
    padding: 5px 6px;
  }

  .mctiers-tier-badge .tier-icon {
    width: 14px;
    height: 14px;
  }

  .mctiers-player-row .mctiers-tier-badge .tier-icon {
    width: 16px;
    height: 16px;
  }

  .gamemode-col .mctiers-tier-badge {
    min-width: 50px;
    padding: 4px 8px;
  }

  .mctiers-tier-badge .tier-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  .mctiers-player-row {
    grid-template-columns: 35px 60px 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 10px 12px;
  }

  .player-skin {
    width: 60px;
    height: 60px;
    grid-row: 1 / 3;
  }

  .player-rank {
    grid-row: 1 / 3;
  }

  .player-info {
    grid-column: 3;
  }

  .player-region {
    grid-column: 3;
    justify-content: flex-start;
  }

  .player-tiers {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ----------------------------------------------------------
   Ranking Page Tier Column Headers
   ---------------------------------------------------------- */
.tier-col-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  color: #fff !important;
  border-radius: 12px 12px 0 0 !important;
  margin-bottom: 0px !important;
  text-transform: capitalize !important;
  transition: all 0.3s ease;
  min-height: 54px;
}

.header-t1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.header-t2 {
  background: linear-gradient(135deg, #cacf7c, #beb177) !important;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.2);
}

.header-t3 {
  background: linear-gradient(135deg, #fc7210, #d97706) !important;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
}

.header-t4 {
  background: linear-gradient(135deg, #a84dfd, #8b5cf6) !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.header-t5 {
  background: linear-gradient(135deg, #686a6e, #4b5563) !important;
  box-shadow: 0 4px 15px rgba(75, 85, 99, 0.2);
}

/* ----------------------------------------------------------
   Discords Dropdown Redesign
   ---------------------------------------------------------- */
.discord-nav-item {
  position: relative;
  cursor: pointer;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 320px;
  background: rgba(16, 21, 28, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.discord-nav-item:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-chevron {
  transition: transform 0.3s ease;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-nav);
  transition: color 0.2s ease;
}

.dropdown-item:hover span {
  color: #fff;
}

.item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease;
  padding: 10px; /* Increased padding to make SVGs appear much smaller and cleaner */
  overflow: hidden;
}

.dropdown-item:hover .item-icon {
  transform: scale(1.1);
}

.item-icon svg {
  width: 100%;
  height: 100%;
}

/* Individual Icon Colors (matching screenshot) */
.vanilla-icon { color: #a78bfa; background: rgba(167, 139, 250, 0.1); }
.uhc-icon     { color: #f87171; background: rgba(248, 113, 113, 0.1); }
.pot-icon     { color: #fb7185; background: rgba(251, 113, 133, 0.1); }
.nethop-icon  { color: #818cf8; background: rgba(129, 140, 248, 0.1); }
.smp-icon     { color: #34d399; background: rgba(52, 211, 153, 0.1); }
.sword-icon   { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.axe-icon     { color: #38bdf8; background: rgba(56, 189, 248, 0.1); }
.mace-icon    { color: #94a3b8; background: rgba(148, 163, 184, 0.1); }

.tier-header-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.tier-header-icon svg {
  width: 100%;
  height: 100%;
}

.tier-list {
  background: rgba(0, 0, 0, 0.1);
  padding: 8px;
  border-radius: 0 0 12px 12px;
  min-height: 100px;
}

/* ----------------------------------------------------------
   Rules & Fair Play Redesign
   ---------------------------------------------------------- */
.rules-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

.rule-card {
  position: relative;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.rule-card:hover {
  transform: translateY(-8px);
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.rule-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.rule-icon svg {
  width: 100%;
  height: 100%;
}

.rule-content {
  position: relative;
  z-index: 2;
}

.rule-content h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #fff;
}

.rule-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Specific Rule Color Themes */
.rule-cheating { border-bottom: 4px solid #ef4444; }
.rule-cheating .rule-icon { color: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.1); }
.rule-cheating:hover { box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15); }

.rule-boosting { border-bottom: 4px solid #f59e0b; }
.rule-boosting .rule-icon { color: #f59e0b; box-shadow: 0 0 15px rgba(245, 158, 11, 0.1); }
.rule-boosting:hover { box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15); }

.rule-sportsmanship { border-bottom: 4px solid #0ea5e9; }
.rule-sportsmanship .rule-icon { color: #0ea5e9; box-shadow: 0 0 15px rgba(14, 165, 233, 0.1); }
.rule-sportsmanship:hover { box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15); }

/* Decorative Background Glow */
.rule-icon-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.rule-card:hover .rule-icon-glow {
  opacity: 0.4;
}

.rule-cheating .rule-icon-glow { background: #ef4444; }
.rule-boosting .rule-icon-glow { background: #f59e0b; }
.rule-sportsmanship .rule-icon-glow { background: #0ea5e9; }

@media (max-width: 768px) {
  .rules-container {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   Player Profile Modal
   ---------------------------------------------------------- */
.player-profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

.player-profile-overlay.active {
  pointer-events: auto;
  opacity: 1;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.player-profile-modal {
  background: linear-gradient(145deg, #1a2332 0%, #0f1419 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 380px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  transform: scale(0.8) translateY(30px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.player-profile-overlay.active .player-profile-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Closing animation */
.player-profile-overlay.closing {
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  pointer-events: none;
}

.player-profile-overlay.closing .player-profile-modal {
  transform: scale(0.9) translateY(20px);
  opacity: 0;
}

.player-profile-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.player-profile-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.player-profile-close svg {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.player-profile-header {
  padding: 32px 24px 24px;
  text-align: center;
  position: relative;
}

.player-profile-skin {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.2);
}

.player-profile-skin.rank-1-glow {
  border-color: rgba(255, 193, 7, 0.6);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.5), 0 0 40px rgba(255, 193, 7, 0.3), inset 0 0 20px rgba(255, 193, 7, 0.2);
}

.player-profile-skin.rank-2-glow {
  border-color: rgba(192, 192, 192, 0.6);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.5), 0 0 40px rgba(192, 192, 192, 0.3), inset 0 0 20px rgba(192, 192, 192, 0.2);
}

.player-profile-skin.rank-3-glow {
  border-color: rgba(205, 127, 50, 0.6);
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.5), 0 0 40px rgba(205, 127, 50, 0.3), inset 0 0 20px rgba(205, 127, 50, 0.2);
}

.player-profile-skin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.player-profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rank-place-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.player-profile-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  position: relative;
  margin-bottom: 6px;
  cursor: help;
  transition: transform 0.2s ease;
}

.player-profile-title:hover {
  transform: translateY(-2px);
}

.player-profile-region {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.player-profile-position {
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.position-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.position-rank {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
}

.position-trophy {
  width: 20px;
  height: 20px;
  color: #fbbf24;
}

.position-text {
  color: #9ca3af;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.position-points {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
}

.player-profile-tiers {
  padding: 20px 24px 30px;
}

.tiers-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tier-badge-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: help;
  transition: all 0.15s ease;
  min-width: 52px;
}

.tier-badge-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tier-badge-modal .tier-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier-badge-modal .tier-icon svg {
  width: 100%;
  height: 100%;
  max-width: 14px;
  max-height: 14px;
  display: block;
  margin: auto;
}

.tier-badge-modal .tier-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tier colors for modal - matching overall tab exactly */
.tier-badge-modal.tier-ht1 {
  background: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.6);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.4), 0 0 30px rgba(255, 193, 7, 0.2);
}
.tier-badge-modal.tier-ht1 .tier-label { color: #ffc107; }

.tier-badge-modal.tier-ht2 {
  background: rgba(229, 231, 235, 0.25);
  border-color: rgba(229, 231, 235, 0.6);
  box-shadow: 0 0 15px rgba(229, 231, 235, 0.4), 0 0 30px rgba(229, 231, 235, 0.2);
}
.tier-badge-modal.tier-ht2 .tier-label { color: #e5e7eb; }

.tier-badge-modal.tier-ht3 {
  background: rgba(249, 115, 22, 0.25);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4), 0 0 30px rgba(249, 115, 22, 0.2);
}
.tier-badge-modal.tier-ht3 .tier-label { color: #f97316; }

.tier-badge-modal.tier-ht4 {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
}
.tier-badge-modal.tier-ht4 .tier-label { color: #8b5cf6; }

.tier-badge-modal.tier-ht5 {
  background: rgba(107, 114, 128, 0.25);
  border-color: rgba(107, 114, 128, 0.6);
  box-shadow: 0 0 15px rgba(107, 114, 128, 0.4), 0 0 30px rgba(107, 114, 128, 0.2);
}
.tier-badge-modal.tier-ht5 .tier-label { color: #6b7280; }

.tier-badge-modal.tier-lt1 {
  background: rgba(253, 186, 116, 0.2);
  border-color: rgba(253, 186, 116, 0.5);
  box-shadow: 0 0 12px rgba(253, 186, 116, 0.3), 0 0 24px rgba(253, 186, 116, 0.15);
}
.tier-badge-modal.tier-lt1 .tier-label { color: #fdba74; }

.tier-badge-modal.tier-lt2 {
  background: rgba(209, 213, 219, 0.2);
  border-color: rgba(209, 213, 219, 0.5);
  box-shadow: 0 0 12px rgba(209, 213, 219, 0.3), 0 0 24px rgba(209, 213, 219, 0.15);
}
.tier-badge-modal.tier-lt2 .tier-label { color: #d1d5db; }

.tier-badge-modal.tier-lt3 {
  background: rgba(251, 146, 60, 0.2);
  border-color: rgba(251, 146, 60, 0.5);
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.3), 0 0 24px rgba(251, 146, 60, 0.15);
}
.tier-badge-modal.tier-lt3 .tier-label { color: #fb923c; }

.tier-badge-modal.tier-lt4 {
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.3), 0 0 24px rgba(167, 139, 250, 0.15);
}
.tier-badge-modal.tier-lt4 .tier-label { color: #a78bfa; }

.tier-badge-modal.tier-lt5 {
  background: rgba(156, 163, 175, 0.2);
  border-color: rgba(156, 163, 175, 0.5);
  box-shadow: 0 0 12px rgba(156, 163, 175, 0.3), 0 0 24px rgba(156, 163, 175, 0.15);
}
.tier-badge-modal.tier-lt5 .tier-label { color: #9ca3af; }

/* Retired tiers in modal */
.tier-badge-modal.retired-tier {
  opacity: 0.6;
  filter: grayscale(0.5);
  background: rgba(100, 100, 100, 0.15) !important;
  border-color: rgba(100, 100, 100, 0.5) !important;
  box-shadow: 0 0 12px rgba(100, 100, 100, 0.3) !important;
}

.tier-badge-modal.retired-tier .tier-label {
  color: #9ca3af !important;
}

/* Peak tier highlight */
.tier-badge-modal.peak-tier {
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* Tooltip for title */
.title-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 34, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.player-profile-title:hover .title-tooltip {
  opacity: 1;
  visibility: visible;
}

.title-tooltip-name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.title-tooltip-requirement {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* NameMC link */
.namemc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.namemc-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.namemc-link svg {
  width: 12px;
  height: 12px;
}

/* Body scroll lock when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .player-profile-modal {
    width: 95vw;
    max-height: 90vh;
  }
  
  .tiers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .player-profile-header {
    padding: 30px 20px 20px;
  }
  
  .player-profile-name {
    font-size: 1.5rem;
  }
}