/**
 * Sidebar direita (Themeboxes) — layout unificado Gofonex OT
 */
#ThemeboxesColumn {
  width: 180px;
  overflow: visible;
}

#Themeboxes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 180px;
}

#Themeboxes > * {
  flex-shrink: 0;
}

/* Caixa tema padrão (180px) */
.gfn-tbox {
  width: 180px;
  margin: 0 0 14px;
  text-align: center;
  font-family: Verdana, Arial, sans-serif;
}

.gfn-tbox__head {
  height: 45px;
  width: 180px;
  background: url('images/themeboxes/box_top.png') no-repeat top center;
  font-weight: bold;
  font-size: 11px;
  color: #d5c3af;
  line-height: 48px;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}

.gfn-tbox__body {
  width: 180px;
  box-sizing: border-box;
  padding: 8px 10px 6px;
  background: url('images/themeboxes/box_bg.png') repeat-y top center;
  text-align: left;
}

.gfn-tbox__foot {
  height: 30px;
  width: 180px;
  margin-top: -20px;
  background: url('images/themeboxes/box_bottom.png') no-repeat top center;
}

/* Highscores */
.gfn-rank__row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.gfn-rank__row:last-of-type {
  border-bottom: none;
}

.gfn-rank__outfit {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: #1a140f;
  border: 1px solid #5a4a3a;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gfn-rank__outfit img {
  width: 64px;
  height: 64px;
  margin-bottom: -8px;
  image-rendering: pixelated;
  pointer-events: none;
}

.gfn-rank__info {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  color: #d5c3af;
  line-height: 1.35;
}

.gfn-rank__name {
  display: block;
  font-size: 10px;
  font-weight: bold;
  color: #f1e0c6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gfn-rank__name a {
  color: #f1e0c6;
  text-decoration: none;
}

.gfn-rank__name a:hover {
  color: #fff;
}

.gfn-rank__meta {
  display: block;
  font-size: 9px;
  color: #c4b29a;
  line-height: 1.3;
}

.gfn-rank__btn-wrap {
  text-align: center;
  padding: 8px 0 2px;
}

.gfn-rank__btn {
  height: 30px;
  width: 148px;
  border: 0;
  background: url('images/themeboxes/button.png') no-repeat center;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  color: #d5c3af;
  cursor: pointer;
}

.gfn-rank__btn:hover {
  background-image: url('images/themeboxes/button_over.png');
  color: #fff;
}

/* Upcoming Events */
.gfn-events__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}

.gfn-events__row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.gfn-events__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: #1a140f;
  border: 1px solid #5a4a3a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gfn-events__icon img {
  width: 48px;
  height: 48px;
  max-width: none;
  image-rendering: pixelated;
}

.gfn-events__meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.gfn-events__label {
  display: block;
  font-size: 10px;
  font-weight: bold;
  color: #f1e0c6;
  line-height: 1.25;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gfn-events__timer {
  display: block;
  font-size: 11px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  color: #e8c878;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.gfn-events__empty {
  font-size: 10px;
  color: #d5c3af;
  text-align: center;
  padding: 10px 4px;
}

.gfn-tbox--discord .gfn-tbox__body {
  padding: 12px 10px;
}

/* Compatibilidade: boxes antigas na mesma coluna */
#Themeboxes .rank,
#Themeboxes .discord,
#Themeboxes .donate,
#Themeboxes .serversave,
#Themeboxes .rashid,
#Themeboxes .searchchar {
  margin-bottom: 14px;
}

#Themeboxes .rank_bottom,
#Themeboxes .discord_bottom,
#Themeboxes .donate_bottom,
#Themeboxes .serversave_bottom,
#Themeboxes .rashid_bottom,
#Themeboxes .searchchar_bottom {
  margin-top: -20px;
}

#Themeboxes .rank_content,
#Themeboxes .discord_content,
#Themeboxes .donate_content,
#Themeboxes .serversave_content,
#Themeboxes .rashid_content,
#Themeboxes .searchchar_content {
  width: 180px;
  box-sizing: border-box;
}
