/* ELITE WHITE-PURPLE DESIGN SYSTEM - NAMESPACE .lbd- */
.lbd-wrapper {
  margin-left: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.lbd-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* HEADER */
.lbd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
}
.lbd-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}
.lbd-subtitle {
  margin: 4px 0 0;
  color: #a1a1aa;
  font-size: 14px;
}
.lbd-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #06b6d4;
  font-weight: 600;
  text-transform: uppercase;
}
.lbd-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 12px #22c55e;
  animation: lbdPulse 2s infinite;
}

/* HEADER RIGHT & BUTTONS */
.lbd-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lbd-my-rank {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lbd-my-rank:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}
.lbd-rank-num {
  font-size: 24px;
  font-weight: 800;
  color: #c084fc;
  font-variant-numeric: tabular-nums;
}
.lbd-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}
.lbd-btn-icon {
  padding: 12px;
  border-radius: 50%;
}
.lbd-btn:hover { background: rgba(255,255,255,0.1); }
.lbd-btn-primary {
  background: #a855f7;
  border-color: #c084fc;
}
.lbd-btn-primary:hover {
  background: #c084fc;
  box-shadow: 0 0 20px rgba(168,85,247,0.4);
}

/* TICKER */
.lbd-ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 24px;
  border-radius: 8px;
}
.lbd-ticker-track {
  display: inline-block;
  animation: lbdTickerScroll 30s linear infinite;
  font-size: 14px;
  color: #e4e4e7;
}
.lbd-ticker-item {
  margin-right: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* CONTROLS */
.lbd-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px 32px;
  align-items: center;
}
.lbd-control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lbd-control-label {
  font-size: 12px;
  color: #a1a1aa;
  font-weight: 700;
  letter-spacing: 1px;
}
.lbd-pills {
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}
.lbd-pill {
  background: transparent;
  border: none;
  color: #a1a1aa;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s;
}
.lbd-pill.active {
  background: rgba(168,85,247,0.2);
  color: #c084fc;
  box-shadow: inset 0 0 0 1px rgba(168,85,247,0.5);
}
.lbd-select {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  outline: none;
  font-family: 'Inter';
}

/* PODIUM */
.lbd-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 340px;
  gap: 24px;
  margin: 32px 0;
}
.lbd-pillar {
  width: 220px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  position: relative;
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
  cursor: pointer;
}
.lbd-pillar:hover { transform: translateY(-4px); }
.lbd-pillar-1 { height: 320px; border-top: 4px solid #fbbf24; box-shadow: 0 -20px 60px rgba(251,191,36,0.15); }
.lbd-pillar-2 { height: 260px; border-top: 4px solid #c0c0c0; }
.lbd-pillar-3 { height: 220px; border-top: 4px solid #cd7f32; }

.lbd-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #fff;
  position: absolute;
  top: -32px;
  background: #111;
  object-fit: cover;
}
.lbd-pillar-1 .lbd-avatar { width: 80px; height: 80px; top: -40px; border-color: #fbbf24; }

.lbd-podium-rank {
  font-size: 48px;
  font-weight: 900;
  opacity: 0.1;
  position: absolute;
  bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.lbd-podium-name {
  margin-top: 32px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.lbd-podium-metric {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-top: 16px;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* TABLE */
.lbd-table-container { padding: 0; overflow: hidden; }
.lbd-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.lbd-table th {
  padding: 20px 24px;
  background: rgba(0,0,0,0.4);
  font-size: 12px;
  color: #a1a1aa;
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lbd-row {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: all 0.3s;
  cursor: pointer;
}
.lbd-row:hover {
  background: rgba(168,85,247,0.05);
  transform: scale(1.002);
}
.lbd-row.is-me {
  background: rgba(6, 182, 212, 0.08);
  border-left: 4px solid #06b6d4;
}
.lbd-table td {
  padding: 16px 24px;
  vertical-align: middle;
}
.lbd-td-rank { font-size: 18px; font-weight: 800; color: #a1a1aa; width: 80px; }
.lbd-td-trader { display: flex; align-items: center; gap: 16px; font-weight: 600; }
.lbd-td-trader img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); }
.lbd-td-metric { font-size: 20px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.lbd-td-stats { font-size: 13px; color: #a1a1aa; }

/* CHIPS & BADGES */
.lbd-move {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: 8px;
}
.lbd-move.up { color: #22c55e; background: rgba(34,197,94,0.1); }
.lbd-move.down { color: #ef5350; background: rgba(239,83,80,0.1); }
.lbd-move.new { color: #fbbf24; background: rgba(251,191,36,0.1); animation: lbdPulse 2s infinite; }
.lbd-badge { font-size: 18px; margin-right: 4px; }

/* MODALS */
.lbd-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  display: none; justify-content: center; align-items: center;
  z-index: 9999;
}
.lbd-modal.active { display: flex; animation: lbdFadeIn 0.3s forwards; }
.lbd-modal-content {
  width: 100%; max-width: 800px;
  padding: 32px; position: relative;
}
.lbd-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.lbd-btn-close { background: transparent; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.lbd-chart-container { width: 100%; height: 300px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; }

/* ANIMATIONS */
@keyframes lbdPulse { 0% { box-shadow: 0 0 0 0 rgba(currentColor, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(currentColor, 0); } 100% { box-shadow: 0 0 0 0 rgba(currentColor, 0); } }
@keyframes lbdTickerScroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
@keyframes lbdFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }