/* ============================================================
   LEADERBOARD
   ============================================================ */
.lb-wrap {
  font-family: 'Montserrat', sans-serif;
  width: 920px;
  max-width: 100%;
  margin: 0 auto;
  padding: 32px 36px;
  border-radius: 16px;
  color: #E0E0E0;
  background: radial-gradient(124.78% 100% at 50% 100%, rgba(0, 167, 97, 0.2) 0%, rgba(0, 167, 97, 0) 100%), linear-gradient(0deg, #080A0E, #080A0E);
  border: 1px solid rgba(0, 167, 97, 0.3);
  box-sizing: border-box;
}

/* ---- TABS ---- */
.lb-tabs {
  display: flex;
  background: #FFFFFF0A;
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 28px;
  border: 1px solid #FFFFFF29;
  gap: 8px;
}
.lb-tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  background: #FFFFFF0A;
  color: #fff;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  font-family: inherit;
}
.lb-tab.active {
  background: linear-gradient(111.17deg, #089150 0%, #0AB163 50%, #3DC583 100%);
  color: #fff;
}
/*.lb-tab:not(.active):hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255, 255, 255, 0.06);
}*/

/* ---- TABLE WRAPS ---- */
.lb-table-wrap { display: none; }
.lb-table-wrap.active { display: block; }

/* ---- COLUMN HEADERS ---- */
.lb-header {
  display: flex;
  align-items: center;
  padding: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* Nations header widths */
.lb-header.nations-header .col-rank  { width: 120px; text-align: center; }
.lb-header.nations-header .col-team  { flex: 1; text-align: center; }
.lb-header.nations-header .col-score { width: 120px; text-align: center; }

/* Traders header widths */
.lb-header.traders-header .col-rank   { width: 120px; text-align: center; }
.lb-header.traders-header .col-trader { flex: 1; text-align: center; }
.lb-header.traders-header .col-team   { width: 120px; text-align: center; }

/* ---- ROWS ---- */
.lb-list { list-style: none; margin: 0; padding: 0; }

.lb-row {
  display: none;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #FFFFFF33;
  transition: background 0.15s;
  color: #fff;
}
.lb-row.visible { display: flex; }
.lb-row:hover { background: rgba(0, 167, 97, 0.03); }

/* ---- NATIONS row layout ---- */
.nations-list .lb-rank {
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}
.nations-list .lb-rank .medal {
  position: absolute;
  left: 8px;
  width: 34px;
  height: 34px;
}
.nations-list .lb-rank .rank-num {
  /* stays centered in the 120px column */
}

.nations-list .lb-team {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 700;
}
.nations-list .lb-team .flag {
  width: 30px;
  height: 21px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.nations-list .lb-score {
  width: 120px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ---- TRADERS row layout ---- */
.traders-list .lb-rank {
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.traders-list .lb-rank .medal {
  position: absolute;
  left: 8px;
  width: 34px;
  height: 34px;
}

.traders-list .lb-trader {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.traders-list .lb-team-flag {
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.traders-list .lb-team-flag .flag {
  width: 30px;
  height: 21px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---- PAGINATION ---- */
.lb-pag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  user-select: none;
}
.lb-pag button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: transparent;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}
/*.lb-pag button:hover:not(:disabled) {
  border-color: rgba(0, 167, 97, 0.5);
  color: #3DC583;
}*/
.lb-pag button.active {
  background: #00A761;
  border-color: transparent;
  color: #fff;
  font-weight: 500;
}
.lb-pag button:disabled {
  opacity: 0.25;
  cursor: default;
}
.lb-pag .ellipsis {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

@media only screen and (max-width: 767px) {
                

.lb-list .lb-team, .lb-list .lb-trader {
    font-size: 14px;
gap:12px;
}

.lb-list .lb-team .flag, .traders-list .lb-team-flag .flag {
    width: 20px;
    height: 14.29px;
}

.lb-list .lb-rank {
    font-size: 14px;
        width: 60px;
}

.lb-list .lb-rank .medal {
    width: 24px;
    height: 24px;
    left: 0;
}

.lb-wrap {
    padding: 16px;
}

.lb-list .lb-score {
    width: 60px !important;
    text-align: right !important;
    font-size: 14px;
}

.lb-header .col-score {
    width: 60px !important;
    text-align: right !important;
font-size:12px
}
.lb-header .col-rank {
    width: 60px !important;
    text-align: left !important;
    font-size: 12px;
}
.lb-header .col-team, .lb-header .col-trader {
    font-size: 12px;
}

.lb-list .lb-team-flag {
    width: 60px;
    justify-content: flex-end;
}

.lb-list .lb-rank .rank-num {
    margin-left: 12px;
}

.lb-header .col-team, .lb-header.traders-header .col-team {
    width: 60px;
    text-align: right;
}

.lb-row {
    padding: 10px 0;
}

.lb-tabs {
    margin-bottom: 24px;
}

.lb-pag {
    margin-top: 24px;
}


            }