﻿/* ===== FORBES PAGE ===== */
.fb-page {
  min-height: 100vh;
  padding: 96px 24px 64px;
}

.fb-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== HEAD ===== */
.fb-head {
  text-align: center;
  margin-bottom: 64px;
  animation: fup .5s ease both;
}

.fb-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: rgba(245,197,24,.12);
  border: 1px solid rgba(245,197,24,.28);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  color: var(--y);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.fb-head-badge i { font-size: 14px; }

.fb-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

.fb-title em { color: var(--y); font-style: normal; }

.fb-sub {
  font-size: 15px;
  color: var(--txm);
  line-height: 1.7;
}

/* ===== PODIUM ===== */
.fb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  min-height: 280px;
  animation: fup .5s .1s ease both;
}

.fb-podium-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--txm);
  font-size: 14px;
  font-weight: 600;
  margin: auto;
}

/* Podium card */
.fb-pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 280px;
}

/* Heights */
.fb-pod[data-rank="1"] { order: 2; }
.fb-pod[data-rank="2"] { order: 1; }
.fb-pod[data-rank="3"] { order: 3; }

.fb-pod-card {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--tr);
  backdrop-filter: blur(20px);
}

.fb-pod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
}

.fb-pod[data-rank="1"] .fb-pod-card {
  border-color: rgba(245,197,24,.35);
  box-shadow: 0 0 0 1px rgba(245,197,24,.1), 0 24px 60px rgba(245,197,24,.12);
  padding-top: 32px;
}
.fb-pod[data-rank="1"] .fb-pod-card::before {
  background: linear-gradient(90deg, transparent, rgba(245,197,24,.7), transparent);
}

.fb-pod[data-rank="2"] .fb-pod-card {
  border-color: rgba(192,192,192,.25);
  box-shadow: 0 0 0 1px rgba(192,192,192,.08), 0 16px 40px rgba(0,0,0,.3);
}
.fb-pod[data-rank="2"] .fb-pod-card::before {
  background: linear-gradient(90deg, transparent, rgba(192,192,192,.4), transparent);
}

.fb-pod[data-rank="3"] .fb-pod-card {
  border-color: rgba(205,127,50,.25);
  box-shadow: 0 0 0 1px rgba(205,127,50,.08), 0 16px 40px rgba(0,0,0,.3);
}
.fb-pod[data-rank="3"] .fb-pod-card::before {
  background: linear-gradient(90deg, transparent, rgba(205,127,50,.4), transparent);
}

.fb-pod-card:hover { transform: scale(1.03); }

/* Crown for #1 */
.fb-pod[data-rank="1"] .fb-pod-card::after {
  content: '👑';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(245,197,24,.6));
}

/* Avatar / skin container */
.fb-pod-av {
  width: 80px;
  height: 110px;
  margin: 0 auto 14px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Skin image */
.fb-pod-skin {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  transition: transform .3s ease;
}

.fb-pod-card:hover .fb-pod-skin {
  transform: scale(1.06) translateY(-3px);
}

/* Fallback letter avatar (shown when no skin) */
.fb-pod-av-letter {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  position: relative;
}

.fb-pod[data-rank="1"] .fb-pod-av {
  width: 96px;
  height: 130px;
}
.fb-pod[data-rank="1"] .fb-pod-skin {
  filter: drop-shadow(0 6px 18px rgba(245,197,24,.35));
}
.fb-pod[data-rank="1"] .fb-pod-av-letter {
  background: linear-gradient(135deg, var(--y), #ff9f00);
  color: #000;
  box-shadow: 0 0 0 3px rgba(245,197,24,.25), 0 8px 24px rgba(245,197,24,.3);
  width: 76px; height: 76px; font-size: 30px;
}
.fb-pod[data-rank="2"] .fb-pod-av-letter {
  background: linear-gradient(135deg, #c0c0c0, #888);
  color: #000;
  box-shadow: 0 0 0 3px rgba(192,192,192,.2);
}
.fb-pod[data-rank="3"] .fb-pod-av-letter {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(205,127,50,.2);
}

/* Glow platform under skin */
.fb-pod[data-rank="1"] .fb-pod-av::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(245,197,24,.3) 0%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.fb-pod[data-rank="2"] .fb-pod-av::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 16px;
  background: radial-gradient(ellipse, rgba(192,192,192,.2) 0%, transparent 70%);
  filter: blur(5px);
  pointer-events: none;
}
.fb-pod[data-rank="3"] .fb-pod-av::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 14px;
  background: radial-gradient(ellipse, rgba(205,127,50,.2) 0%, transparent 70%);
  filter: blur(5px);
  pointer-events: none;
}

.fb-pod-rank {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  z-index: 2;
}

.fb-pod[data-rank="1"] .fb-pod-rank { background: var(--y); color: #000; }
.fb-pod[data-rank="2"] .fb-pod-rank { background: #c0c0c0; color: #000; }
.fb-pod[data-rank="3"] .fb-pod-rank { background: #cd7f32; color: #fff; }

.fb-pod-name {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-pod[data-rank="1"] .fb-pod-name { font-size: 17px; }

.fb-pod-money {
  font-size: 18px;
  font-weight: 900;
  color: var(--y);
  margin-bottom: 4px;
}

.fb-pod[data-rank="1"] .fb-pod-money { font-size: 22px; }

.fb-pod-lvl {
  font-size: 11px;
  color: var(--txm);
  font-weight: 600;
}

/* Podium base */
.fb-pod-base {
  width: 100%;
  border-radius: 0 0 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,.06);
}

.fb-pod[data-rank="1"] .fb-pod-base { height: 56px; background: rgba(245,197,24,.08); border: 1px solid rgba(245,197,24,.12); border-top: none; font-size: 32px; }
.fb-pod[data-rank="2"] .fb-pod-base { height: 40px; background: rgba(192,192,192,.05); border: 1px solid rgba(192,192,192,.08); border-top: none; }
.fb-pod[data-rank="3"] .fb-pod-base { height: 28px; background: rgba(205,127,50,.05); border: 1px solid rgba(205,127,50,.08); border-top: none; }

/* ===== TABLE ===== */
.fb-table-wrap {
  animation: fup .5s .2s ease both;
}

.fb-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fb-table-head h2 {
  font-size: 20px;
  font-weight: 900;
}

.fb-updated {
  font-size: 12px;
  color: var(--txm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-updated::before {
  content: '';
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.fb-table-container {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.fb-table {
  width: 100%;
  border-collapse: collapse;
}

.fb-table thead tr {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.fb-table th {
  padding: 14px 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--txm);
  text-align: left;
}

.th-rank { width: 60px; text-align: center; }
.th-lvl  { width: 100px; }
.th-cash, .th-bank, .th-total { width: 160px; }

.fb-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: var(--tr);
}

.fb-table tbody tr:last-child { border-bottom: none; }

.fb-table tbody tr:hover {
  background: rgba(255,255,255,.03);
}

.fb-table td {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Rank cell */
.fb-rank-cell {
  text-align: center;
}

.fb-rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255,255,255,.05);
  color: var(--txm);
}

.fb-rank-num.gold   { background: rgba(245,197,24,.15); color: var(--y); }
.fb-rank-num.silver { background: rgba(192,192,192,.12); color: #c0c0c0; }
.fb-rank-num.bronze { background: rgba(205,127,50,.12); color: #cd7f32; }

/* Name cell */
.fb-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-av-sm {
  width: 36px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  background: rgba(245,197,24,.08);
  overflow: hidden;
  position: relative;
}

.fb-av-sm img {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
}

.fb-av-sm-letter {
  font-size: 14px;
  font-weight: 900;
  color: var(--y);
}

.fb-name-text { font-weight: 700; }

/* Level badge */
.fb-lvl-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: rgba(255,255,255,.05);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: var(--txm);
}

/* Money cells */
.fb-cash { color: var(--txm); }
.fb-bank { color: var(--txm); }
.fb-total { color: var(--y); font-weight: 800; font-size: 14px; }

/* Loading / error */
.fb-loading-cell {
  text-align: center;
  padding: 48px !important;
  color: var(--txm);
}

.fb-loading-cell .fb-spinner,
.fb-podium-loading .fb-spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: var(--y);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto;
}

.fb-error-cell {
  text-align: center;
  padding: 48px !important;
  color: #ff4b4b;
  font-weight: 600;
}

.fb-empty-cell {
  text-align: center;
  padding: 48px !important;
  color: var(--txm);
  font-weight: 600;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .fb-podium { flex-direction: column; align-items: center; min-height: auto; }
  .fb-pod { max-width: 100%; width: 100%; order: unset !important; }
  .fb-pod[data-rank="1"] { order: -1 !important; }
  .th-cash, .th-bank, .fb-cash, .fb-bank { display: none; }
  .fb-table th, .fb-table td { padding: 12px 14px; }
}

