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

body, html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: #0f1115;
  font-family: 'Inter', sans-serif;
  color: #eee;
}

/* Overlay full page */
.overlay {
  width: 100%;
  height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.header {
  font-size: 20px;
  font-weight: bold;
  color: #ccc;
  margin-bottom: 25px;
  text-align: center;
  width: 100%;
}

/* Top Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 30px;
}

.stat-card {
  background: #1a1a1f;
  padding: 8px 5px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stat-icon img { width: 28px; margin-bottom: 3px; }

.stat-label { font-size: 12px; color: #aaa; margin-bottom: 2px; text-transform: uppercase; }

.stat-value { font-size: 22px; font-weight: bold; color: #fff; }

.stat-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  display: none;
}

/* Section Titles */
.section-title { font-size: 16px; color: #ccc; margin-bottom: 8px; text-transform: uppercase; width: 100%; }

/* Leaderboard & Ranks */
.leaderboard-section,
.ranks-section { width: 100%; margin-bottom: 20px; }

.leaderboard-section ul,
.ranks-section ul { list-style: none; padding: 0; margin: 0; }

.leaderboard-section li,
.ranks-section li {
  background: #1a1a1f;
  margin-bottom: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.leaderboard li .rank { font-weight: bold; margin-right: 6px; }
.leaderboard li .username { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 5px; }
.leaderboard li .balance { font-weight: bold; }

.ranks-section li { justify-content: space-between; }
.ranks-section .rank-name { font-weight: bold; }
.ranks-section .rank-count { color: #aaa; }

/* Responsive */
@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
}

/* Bottom Footer */
.bottom-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1c1c2e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  font-family: 'Open Sans', sans-serif;
  color: #fff;
  z-index: 1000;
}

.footer-left, .footer-right { font-size: 16px; font-weight: 600; letter-spacing: 1px; }

.footer-center { display: flex; align-items: center; gap: 10px; }
.footer-center img { height: 30px; }
.footer-center-text { font-size: 18px; font-weight: 700; }
